Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

add I2S mode warning for tembed devices

Geo42d0ca4210e1
diff --git a/src/Controllers/I2sController.cpp b/src/Controllers/I2sController.cpp
index 801cd3ee..b3de0334 100644
--- a/src/Controllers/I2sController.cpp
+++ b/src/Controllers/I2sController.cpp
@@ -354,6 +354,12 @@ void I2sController::handleConfig() {
uint8_t bits = userInputManager.readValidatedUint8("Bits per sample (e.g. 16)", state.getI2sBitsPerSample());
state.setI2sBitsPerSample(bits);
+ #if defined(DEVICE_TEMBEDS3) || defined(DEVICE_TEMBEDS3CC1101)
+ terminalView.println("\n[WARNING] I2S may not work properly on T-Embed devices due to internal pin conflicts.");
+ terminalView.println(" This includes shared SPI pins used for the display. Use with caution.");
+ terminalView.println(" Freeze can happen on your device just after this message.\n");
+ #endif
+
i2sService.configureOutput(bclk, lrck, data, freq, bits);
terminalView.println("I2S configured.\n");