mirror of
https://github.com/esp8266/Arduino.git
synced 2025-09-05 08:04:28 +03:00
Add basic 24 bit mode to the I2S API with a i2s_set_bits() call. By default 16b mode is still used, but if i2s_set_bits(24) is run before i2s_begin() then the HW will drive 24-bits of data. This data must be left-aligned (i.e. bits 31..8) in 4-byte samples. Fixes #5244 (the HW doesn't support 8 or 32 bits, only 16 or 24).