sforkowany z mirror/meshtastic-firmware
48 wiersze
1.4 KiB
C
48 wiersze
1.4 KiB
C
// For OLED LCD
|
|
#define I2C_SDA 21
|
|
#define I2C_SCL 22
|
|
|
|
// GPS
|
|
#undef GPS_RX_PIN
|
|
#define GPS_RX_PIN 15
|
|
//#undef GPS_TX_PIN
|
|
//#define GPS_TX_PIN 12 // not connected
|
|
|
|
#define BUTTON_PIN 39 // The middle button GPIO on the T-Beam
|
|
#define EXT_NOTIFY_OUT 12 // Overridden default pin to use for Ext Notify Plugin (#975).
|
|
#define LED_PIN 2 // add status LED (compatible with core-pcb and DIY targets)
|
|
|
|
#define LORA_DIO0 26 // a No connect on the SX1262/SX1268 module
|
|
#define LORA_RESET 23 // RST for SX1276, and for SX1262/SX1268
|
|
#define LORA_DIO1 33 // IRQ for SX1262/SX1268
|
|
#define LORA_DIO2 32 // BUSY for SX1262/SX1268
|
|
#define LORA_DIO3 // Not connected on PCB, but internally on the TTGO SX1262/SX1268, if DIO3 is high the TXCO is enabled
|
|
|
|
#define RF95_SCK 5
|
|
#define RF95_MISO 19
|
|
#define RF95_MOSI 27
|
|
#define RF95_NSS 18
|
|
|
|
// supported modules list
|
|
#define USE_RF95 // RFM95/SX127x
|
|
#define USE_SX1262
|
|
#define USE_SX1268
|
|
#define USE_LLCC68
|
|
|
|
// common pinouts for SX126X modules
|
|
#define SX126X_CS 18 // NSS for SX126X
|
|
#define SX126X_DIO1 LORA_DIO1
|
|
#define SX126X_BUSY LORA_DIO2
|
|
#define SX126X_RESET LORA_RESET
|
|
#define SX126X_RXEN 14
|
|
#define SX126X_TXEN 13
|
|
|
|
// RX/TX for RFM95/SX127x
|
|
#define RF95_RXEN 14
|
|
#define RF95_TXEN 13
|
|
|
|
#ifdef EBYTE_E22
|
|
// Internally the TTGO module hooks the SX126x-DIO2 in to control the TX/RX switch
|
|
// (which is the default for the sx1262interface code)
|
|
#define SX126X_E22
|
|
#endif |