Merge pull request #4128 from hierophect/esp32s2-i2s-claimpin

ESP32S2: Add I2S pin claiming
This commit is contained in:
Scott Shawcroft 2021-02-05 11:47:49 -08:00 committed by GitHub
commit a310d4336b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {