Skip to content

Commit

Permalink
a minor update of LilyGO T3-C6 GPIO pins map
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed May 13, 2024
1 parent 6b1a0bb commit 28d53c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
7 changes: 5 additions & 2 deletions software/firmware/source/SoftRF/src/driver/radio/radiolib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@ static void lr112x_setup()
state = radio->setSyncWord((uint8_t) rl_protocol->syncword[0]);

state = radio->setPreambleLength(8);
#if USE_SX1262
state = radio->explicitHeader();
#endif
state = radio->setCRC(true);

break;
Expand Down Expand Up @@ -481,6 +479,11 @@ static bool lr112x_receive()
rxPacket.len = radio->getPacketLength();

if (rxPacket.len > 0) {

if (rxPacket.len > sizeof(rxPacket.payload)) {
rxPacket.len = sizeof(rxPacket.payload);
}

state = radio->readData(rxPacket.payload, rxPacket.len);
lr112x_receive_active = false;

Expand Down
13 changes: 8 additions & 5 deletions software/firmware/source/SoftRF/src/platform/iomap/LilyGO_T3C6.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@
#define SOC_GPIO_PIN_T3C6_ANT_TX 14

// I2C (ext.)
#define SOC_GPIO_PIN_T3C6_SDA 2
#define SOC_GPIO_PIN_T3C6_SCL 3
#define SOC_GPIO_PIN_T3C6_SDA 8
#define SOC_GPIO_PIN_T3C6_SCL 9

// status LED
#define SOC_GPIO_PIN_T3C6_LED 7

// NRF905 (NC)
#define SOC_GPIO_PIN_T3C6_TXE 7 /* TBD */
#define SOC_GPIO_PIN_T3C6_CE 8 /* TBD */
#define SOC_GPIO_PIN_T3C6_PWR 9 /* TBD */
#define SOC_GPIO_PIN_T3C6_TXE 2 /* TBD */
#define SOC_GPIO_PIN_T3C6_CE 3 /* TBD */
#define SOC_GPIO_PIN_T3C6_PWR 10 /* TBD */

0 comments on commit 28d53c6

Please sign in to comment.