G4lile0 / tinyGS

📡 Open Ground Station Network 🛰
GNU General Public License v3.0
923 stars 177 forks source link

Could the TTGO T3 V1.6 be added to the dropdown of supported Board Types? #135

Closed JasonRJ closed 10 months ago

JasonRJ commented 2 years ago

The board uses the SX1276/8 chip and differs from V1.0 and V2.0 by having LED on pin 25 and Reset on pin 23. Only one definition is needed for all bands 433/470/868/915 MHz. Pin 14 used for Reset on V1.0 and V2.0 is used by the SDCard on V1.6.

I believe this code would be correct for ConfigurationManager.cpp {0x3c, 21, 22, 0, 0, 25, 1, 18, 26, 33, 32, 23, 19, 27, 5, 0.0f, "433/470/868/915 MHz TTGO T3 V1.6"}

This is the board template being used without any issues. {"name":"TTGO T3 V1.6","aADDR":60,"oSDA":21,"oSCL":22,"oRST":0,"pBut":0,"led":25,"radio":1,"lNSS":18,"lDIO0":26,"lDIO1":33,"lBUSSY":32,"lRST":23,"lMISO":19,"lMOSI":27,"lSCK":5,"lTCXOV":0.0}

Definition header from LilyGO example code.

elif defined(LILYGO_T3_V1_6)

define I2C_SDA                     21

define I2C_SCL                     22

define OLED_RST                    UNUSE_PIN

define RADIO_SCLK_PIN              5

define RADIO_MISO_PIN              19

define RADIO_MOSI_PIN              27

define RADIO_CS_PIN                18

define RADIO_DI0_PIN               26

define RADIO_RST_PIN               23

define RADIO_DIO1_PIN              33

define RADIO_BUSY_PIN              32

define SDCARD_MOSI                 15

define SDCARD_MISO                 2

define SDCARD_SCLK                 14

define SDCARD_CS                   13

define BOARD_LED                   25

define LED_ON                      HIGH

define ADC_PIN                     35

define HAS_SDCARD

define HAS_DISPLAY

Code referenced above from LILYGO's GitHub at https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/a274b443ee881ec8fa66ddd3b4ec47229a7081fe/examples/RadioLibExamples/SX1278/SX1278_Receive/utilities.h

Thanks for a great project. Robert

G4lile0 commented 10 months ago

It's added on the beta branch.