mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 06:32:06 +00:00
seperated from tbeam
This commit is contained in:
parent
251c006712
commit
cd438a8534
@ -4,8 +4,6 @@ extends = esp32_base
|
|||||||
board = ttgo-t-beam
|
board = ttgo-t-beam
|
||||||
board_check = true
|
board_check = true
|
||||||
lib_deps = ${esp32_base.lib_deps}
|
lib_deps = ${esp32_base.lib_deps}
|
||||||
lewisxhe/SensorLib@0.2.0 ; touchscreen addon
|
|
||||||
https://github.com/Nasimovy/st7796/archive/refs/tags/1.0.4.zip ; display addon
|
|
||||||
build_flags = ${esp32_base.build_flags}
|
build_flags = ${esp32_base.build_flags}
|
||||||
-DTBEAM_V10
|
-DTBEAM_V10
|
||||||
-Ivariants/tbeam
|
-Ivariants/tbeam
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
#define BUTTON_PIN 38 // The middle button GPIO on the T-Beam
|
#define BUTTON_PIN 38 // The middle button GPIO on the T-Beam
|
||||||
// #define BUTTON_PIN_ALT 13 // Alternate GPIO for an external button if needed. Does anyone use this? It is not documented
|
// #define BUTTON_PIN_ALT 13 // Alternate GPIO for an external button if needed. Does anyone use this? It is not documented
|
||||||
// anywhere.
|
// anywhere.
|
||||||
// #define EXT_NOTIFY_OUT 13 // Default pin to use for Ext Notify Module.
|
#define EXT_NOTIFY_OUT 13 // Default pin to use for Ext Notify Module.
|
||||||
|
|
||||||
// #define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
// #define LED_PIN 4 // Newer tbeams (1.1) have an extra led on GPIO4
|
#define LED_PIN 4 // Newer tbeams (1.1) have an extra led on GPIO4
|
||||||
|
|
||||||
// TTGO uses a common pinout for their SX1262 vs RF95 modules - both can be enabled and we will probe at runtime for RF95 and if
|
// TTGO uses a common pinout for their SX1262 vs RF95 modules - both can be enabled and we will probe at runtime for RF95 and if
|
||||||
// not found then probe for SX1262
|
// not found then probe for SX1262
|
||||||
@ -43,25 +43,3 @@
|
|||||||
#define GPS_RX_PIN 34
|
#define GPS_RX_PIN 34
|
||||||
#define GPS_TX_PIN 12
|
#define GPS_TX_PIN 12
|
||||||
// #define GPS_DEBUG
|
// #define GPS_DEBUG
|
||||||
|
|
||||||
// Display addon
|
|
||||||
#define HAS_TOUCHSCREEN 1
|
|
||||||
#define USE_VIRTUAL_KEYBOARD 1
|
|
||||||
#define HAS_CST226SE
|
|
||||||
#define SCREEN_TOUCH_INT 35
|
|
||||||
#define USE_ST7796
|
|
||||||
#define ST7796_NSS 25
|
|
||||||
#define ST7796_RS 13 // DC
|
|
||||||
#define ST7796_SDA 14 // MOSI
|
|
||||||
#define ST7796_SCK 15
|
|
||||||
#define ST7796_RESET 2
|
|
||||||
#define ST7796_MISO -1
|
|
||||||
#define ST7796_BUSY -1
|
|
||||||
#define VTFT_LEDA 4
|
|
||||||
#define TFT_BACKLIGHT_ON HIGH
|
|
||||||
#define ST7796_SPI_HOST VSPI_HOST
|
|
||||||
#define SPI_FREQUENCY 40000000
|
|
||||||
#define SPI_READ_FREQUENCY 16000000
|
|
||||||
#define TFT_HEIGHT 222
|
|
||||||
#define TFT_WIDTH 480
|
|
||||||
#define BRIGHTNESS_DEFAULT 100 // Medium Low Brightnes
|
|
14
variants/tbeam_TFT/platformio.ini
Normal file
14
variants/tbeam_TFT/platformio.ini
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
; The 1.0 release of the TBEAM board
|
||||||
|
[env:tbeam_TFT]
|
||||||
|
extends = esp32_base
|
||||||
|
board = ttgo-t-beam
|
||||||
|
board_check = true
|
||||||
|
lib_deps = ${esp32_base.lib_deps}
|
||||||
|
https://github.com/Nasimovy/st7796/archive/refs/tags/1.0.4.zip ; display addon
|
||||||
|
build_flags = ${esp32_base.build_flags}
|
||||||
|
-DTBEAM_V10
|
||||||
|
-Ivariants/tbeam_TFT
|
||||||
|
-DGPS_POWER_TOGGLE ; comment this line to disable double press function on the user button to turn off gps entirely.
|
||||||
|
-DBOARD_HAS_PSRAM
|
||||||
|
-mfix-esp32-psram-cache-issue
|
||||||
|
upload_speed = 921600
|
63
variants/tbeam_TFT/variant.h
Normal file
63
variants/tbeam_TFT/variant.h
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
// #define BUTTON_NEED_PULLUP // if set we need to turn on the internal CPU pullup during sleep
|
||||||
|
|
||||||
|
#define I2C_SDA 21
|
||||||
|
#define I2C_SCL 22
|
||||||
|
|
||||||
|
// Display addon
|
||||||
|
#define USE_ST7796
|
||||||
|
#define ST7796_NSS 25
|
||||||
|
#define ST7796_RS 13 // DC
|
||||||
|
#define ST7796_SDA 14 // MOSI
|
||||||
|
#define ST7796_SCK 15
|
||||||
|
#define ST7796_RESET 2
|
||||||
|
#define ST7796_MISO -1
|
||||||
|
#define ST7796_BUSY -1
|
||||||
|
#define VTFT_LEDA 4
|
||||||
|
#define TFT_BACKLIGHT_ON HIGH
|
||||||
|
#define ST7796_SPI_HOST VSPI_HOST
|
||||||
|
#define SPI_FREQUENCY 40000000
|
||||||
|
#define SPI_READ_FREQUENCY 16000000
|
||||||
|
#define TFT_HEIGHT 222
|
||||||
|
#define TFT_WIDTH 480
|
||||||
|
#define BRIGHTNESS_DEFAULT 100 // Medium Low Brightnes
|
||||||
|
|
||||||
|
#define BUTTON_PIN 38 // The middle button GPIO on the T-Beam
|
||||||
|
// #define BUTTON_PIN_ALT 13 // Alternate GPIO for an external button if needed. Does anyone use this? It is not documented
|
||||||
|
// anywhere.
|
||||||
|
// #define EXT_NOTIFY_OUT 13 // Default pin to use for Ext Notify Module.
|
||||||
|
|
||||||
|
// #define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
// #define LED_PIN 4 // Newer tbeams (1.1) have an extra led on GPIO4
|
||||||
|
|
||||||
|
// TTGO uses a common pinout for their SX1262 vs RF95 modules - both can be enabled and we will probe at runtime for RF95 and if
|
||||||
|
// not found then probe for SX1262
|
||||||
|
#define USE_RF95 // RFM95/SX127x
|
||||||
|
#define USE_SX1262
|
||||||
|
#define USE_SX1268
|
||||||
|
|
||||||
|
#define LORA_DIO0 26 // a No connect on the SX1262 module
|
||||||
|
#define LORA_RESET 23
|
||||||
|
#define LORA_DIO1 33 // SX1262 IRQ
|
||||||
|
#define LORA_DIO2 32 // SX1262 BUSY
|
||||||
|
#define LORA_DIO3 // Not connected on PCB, but internally on the TTGO SX1262, if DIO3 is high the TXCO is enabled
|
||||||
|
|
||||||
|
#ifdef USE_SX1262
|
||||||
|
#define SX126X_CS LORA_CS // FIXME - we really should define LORA_CS instead
|
||||||
|
#define SX126X_DIO1 LORA_DIO1
|
||||||
|
#define SX126X_BUSY LORA_DIO2
|
||||||
|
#define SX126X_RESET LORA_RESET
|
||||||
|
// Not really an E22 but TTGO seems to be trying to clone that
|
||||||
|
#define SX126X_DIO2_AS_RF_SWITCH
|
||||||
|
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
||||||
|
// Internally the TTGO module hooks the SX1262-DIO2 in to control the TX/RX switch (which is the default for the sx1262interface
|
||||||
|
// code)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Leave undefined to disable our PMU IRQ handler. DO NOT ENABLE THIS because the pmuirq can cause sperious interrupts
|
||||||
|
// and waking from light sleep
|
||||||
|
// #define PMU_IRQ 35
|
||||||
|
#define HAS_AXP192
|
||||||
|
#define GPS_UBLOX
|
||||||
|
#define GPS_RX_PIN 34
|
||||||
|
#define GPS_TX_PIN 12
|
||||||
|
// #define GPS_DEBUG
|
Loading…
Reference in New Issue
Block a user