From 8deff9bdc2f820d1b491b2d7924ee1cc73f74eac Mon Sep 17 00:00:00 2001 From: mverch67 Date: Wed, 16 Apr 2025 13:18:18 +0200 Subject: [PATCH] fix notification crash; --- variants/elecrow_panel/platformio.ini | 3 ++- variants/elecrow_panel/variant.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/variants/elecrow_panel/platformio.ini b/variants/elecrow_panel/platformio.ini index e0d174cd7..700912be5 100644 --- a/variants/elecrow_panel/platformio.ini +++ b/variants/elecrow_panel/platformio.ini @@ -85,7 +85,8 @@ build_flags = -D SDCARD_USE_SOFT_SPI -D SPI_DRIVER_SELECT=2 -D USE_I2S_BUZZER - -D INPUTDRIVER_BUTTON_TYPE=0 +; -D INPUTDRIVER_BUTTON_TYPE=0 ; no button as this pin is assigned to LoRa cs! + -D SCREEN_TOUCH_INT=47 ; used to wake up the MCU by touch -D LGFX_DRIVER_TEMPLATE -D LGFX_DRIVER=LGFX_GENERIC -D GFX_DRIVER_INC=\"graphics/LGFX/LGFX_GENERIC.h\" diff --git a/variants/elecrow_panel/variant.h b/variants/elecrow_panel/variant.h index ec3994a19..202be8af9 100644 --- a/variants/elecrow_panel/variant.h +++ b/variants/elecrow_panel/variant.h @@ -126,7 +126,7 @@ #define DAC_I2S_BCK 13 #define DAC_I2S_WS 11 #define DAC_I2S_DOUT 12 -#define DAC_I2S_MCLK 0 +#define DAC_I2S_MCLK 7 // don't use GPIO0 because it's assigned to LoRa or button #endif // GPS via UART1 connector