Add I2S pin claiming

This commit is contained in:
Lucian Copeland 2021-02-04 16:30:05 -05:00
parent adaf43d6d8
commit 210d0f8798
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ void common_hal_audiobusio_i2sout_construct(audiobusio_i2sout_obj_t* self,
self->bit_clock = bit_clock;
self->word_select = word_select;
self->data = data;
claim_pin(bit_clock);
claim_pin(word_select);
claim_pin(data);
}
bool common_hal_audiobusio_i2sout_deinited(audiobusio_i2sout_obj_t* self) {