add I2S LSB flag (#18793)

This commit is contained in:
blakadder 2023-06-04 23:01:46 +02:00 committed by GitHub
parent 844caf51f9
commit 24233924c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,7 @@
//#define USE_I2S_NO_DAC // Add support for transistor-based output without DAC
//#define USE_I2S_WEBRADIO // Add support for web radio
//#define USE_I2S_SAY_TIME // Add support for english speaking clock
//#define USE_I2S_RTTTL // Add support for Rtttl playback
#include "AudioFileSourcePROGMEM.h"
#include "AudioFileSourceID3.h"
@ -251,6 +252,11 @@ int32_t I2S_Init_0(void) {
#else
audio_i2s.out = new AudioOutputI2S();
#endif
#ifdef USE_I2S_LSB
audio_i2s.lsbJustified = true;
#endif // Allow supporting LSBJ chips, e.g. TM8211/PT8211
audio_i2s.bclk = DAC_IIS_BCK;
audio_i2s.ws = DAC_IIS_WS;
audio_i2s.dout = DAC_IIS_DOUT;