From f57db7b523f506234108e80324c50cfcd4757421 Mon Sep 17 00:00:00 2001 From: William Cody Ardoin Date: Fri, 13 Dec 2024 23:18:00 -0600 Subject: [PATCH] Enable GDO2 for CC1101 on T-Embed-CC1101 for Serial Transmission Enable GDO2 for CC1101 on T-Embed-CC1101 for Serial Transmission The IO2 on the T-Embed-CC1101 is Pin# 38 This enables Serial Transmission and use with rcSwitch --- ports/lilygo-t-embed-cc1101/platformio.ini | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ports/lilygo-t-embed-cc1101/platformio.ini b/ports/lilygo-t-embed-cc1101/platformio.ini index 48d1b662..e6c7cc87 100644 --- a/ports/lilygo-t-embed-cc1101/platformio.ini +++ b/ports/lilygo-t-embed-cc1101/platformio.ini @@ -111,7 +111,7 @@ build_flags = -DCC1101_MOSI_PIN=SPI_MOSI_PIN -DCC1101_SCK_PIN=SPI_SCK_PIN -DCC1101_MISO_PIN=SPI_MISO_PIN - ;-DCC1101_GDO2_PIN=14 ; optional + -DCC1101_GDO2_PIN=38 ; optional ; connections are the same as CC1101 -DUSE_NRF24_VIA_SPI @@ -143,9 +143,9 @@ build_flags = -DTFT_HEIGHT=320 -DTFT_INVERSION_ON -DTFT_BL=21 - -DTFT_MISO=10 - -DTFT_MOSI=9 - -DTFT_SCLK=11 + -DTFT_MISO=SPI_MISO_PIN + -DTFT_MOSI=SPI_MOSI_PIN + -DTFT_SCLK=SPI_SCK_PIN -DTFT_CS=41 -DTFT_DC=16 -DTFT_RST=-1 @@ -157,9 +157,9 @@ build_flags = ;SD Card Setup pins -DSDCARD_CS=13 - -DSDCARD_SCK=11 - -DSDCARD_MISO=10 - -DSDCARD_MOSI=9 + -DSDCARD_SCK=SPI_SCK_PIN + -DSDCARD_MISO=SPI_MISO_PIN + -DSDCARD_MOSI=SPI_MOSI_PIN ;Default I2C port -DGROVE_SDA=8