-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53675e8
commit 3acf73b
Showing
7 changed files
with
196 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef BOARD_PINOUT_H_ | ||
#define BOARD_PINOUT_H_ | ||
|
||
// LoRa Radio | ||
#define HAS_SX1262 | ||
#define RADIO_SCLK_PIN 40 | ||
#define RADIO_MISO_PIN 38 | ||
#define RADIO_MOSI_PIN 41 | ||
#define RADIO_CS_PIN 9 | ||
#define RADIO_RST_PIN 17 | ||
#define RADIO_DIO1_PIN 45 | ||
#define RADIO_BUSY_PIN 13 | ||
|
||
// Display | ||
#define HAS_DISPLAY | ||
#define HAS_TFT | ||
|
||
#undef OLED_SDA | ||
#undef OLED_SCL | ||
#undef OLED_RST | ||
|
||
// GPS | ||
#define GPS_RX 43 | ||
#define GPS_TX 44 | ||
|
||
// Aditional Config | ||
#define BATTERY_PIN 4 | ||
|
||
#define BOARD_POWERON 10 | ||
#define BOARD_SDCARD_CS 39 | ||
#define BOARD_BL_PIN 42 | ||
|
||
#define BOARD_I2C_SDA 18 | ||
#define BOARD_I2C_SCL 8 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[env:ttgo_t_deck_GPS] | ||
framework = arduino | ||
monitor_speed = 115200 | ||
platform = espressif32 @ 6.3.1 | ||
board_build.partitions = min_spiffs.csv | ||
board = esp32-s3-devkitc-1 | ||
board_build.mcu = esp32s3 | ||
board_build.embed_files = | ||
data_embed/index.html.gz | ||
data_embed/style.css.gz | ||
data_embed/script.js.gz | ||
data_embed/bootstrap.css.gz | ||
data_embed/bootstrap.js.gz | ||
data_embed/favicon.png.gz | ||
extra_scripts = | ||
pre:tools/compress.py | ||
debug_tool = esp-prog | ||
build_flags = | ||
${common.build_flags} | ||
${common.usb_flags} | ||
-D TTGO_T_DECK_PLUS | ||
-D BOARD_HAS_PSRAM | ||
-D USER_SETUP_LOADED | ||
-D ST7789_DRIVER | ||
-D TFT_WIDTH=240 | ||
-D TFT_HEIGHT=320 | ||
-D TFT_RGB_ORDER=TFT_BGR | ||
-D TFT_INVERSION_ON | ||
-D TFT_MISO=38 | ||
-D TFT_MOSI=41 | ||
-D TFT_SCLK=40 | ||
-D TFT_CS=12 | ||
-D TFT_DC=11 | ||
-D TFT_RST=-1 | ||
-D TFT_BUSY=-1 | ||
-D TFT_BL=42 | ||
-D TFT_BACKLIGHT_ON=1 | ||
-D TOUCH_CS=-1 | ||
-D LOAD_GLCD | ||
-D LOAD_FONT2 | ||
-D LOAD_FONT4 | ||
-D LOAD_FONT6 | ||
-D LOAD_FONT7 | ||
-D LOAD_FONT8 | ||
-D SPI_FREQUENCY=40000000 | ||
-D SPI_READ_FREQUENCY=16000000 | ||
lib_deps = | ||
${common.lib_deps} | ||
bodmer/TFT_eSPI @ 2.5.43 | ||
https://github.com/mmMicky/TouchLib.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef BOARD_PINOUT_H_ | ||
#define BOARD_PINOUT_H_ | ||
|
||
// LoRa Radio | ||
#define HAS_SX1262 | ||
#define RADIO_SCLK_PIN 40 | ||
#define RADIO_MISO_PIN 38 | ||
#define RADIO_MOSI_PIN 41 | ||
#define RADIO_CS_PIN 9 | ||
#define RADIO_RST_PIN 17 | ||
#define RADIO_DIO1_PIN 45 | ||
#define RADIO_BUSY_PIN 13 | ||
|
||
// Display | ||
#define HAS_DISPLAY | ||
#define HAS_TFT | ||
|
||
#undef OLED_SDA | ||
#undef OLED_SCL | ||
#undef OLED_RST | ||
|
||
// GPS | ||
#define GPS_RX 43 | ||
#define GPS_TX 44 | ||
#define GPS_BAUDRATE 38400 | ||
|
||
// Aditional Config | ||
#define BATTERY_PIN 4 | ||
|
||
#define BOARD_POWERON 10 | ||
#define BOARD_SDCARD_CS 39 | ||
#define BOARD_BL_PIN 42 | ||
|
||
#define BOARD_I2C_SDA 18 | ||
#define BOARD_I2C_SCL 8 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[env:ttgo_t_deck_plus] | ||
framework = arduino | ||
monitor_speed = 115200 | ||
platform = espressif32 @ 6.3.1 | ||
board_build.partitions = min_spiffs.csv | ||
board = esp32-s3-devkitc-1 | ||
board_build.mcu = esp32s3 | ||
board_build.embed_files = | ||
data_embed/index.html.gz | ||
data_embed/style.css.gz | ||
data_embed/script.js.gz | ||
data_embed/bootstrap.css.gz | ||
data_embed/bootstrap.js.gz | ||
data_embed/favicon.png.gz | ||
extra_scripts = | ||
pre:tools/compress.py | ||
debug_tool = esp-prog | ||
build_flags = | ||
${common.build_flags} | ||
${common.usb_flags} | ||
-D TTGO_T_DECK_PLUS | ||
-D BOARD_HAS_PSRAM | ||
-D USER_SETUP_LOADED | ||
-D ST7789_DRIVER | ||
-D TFT_WIDTH=240 | ||
-D TFT_HEIGHT=320 | ||
-D TFT_RGB_ORDER=TFT_BGR | ||
-D TFT_INVERSION_ON | ||
-D TFT_MISO=38 | ||
-D TFT_MOSI=41 | ||
-D TFT_SCLK=40 | ||
-D TFT_CS=12 | ||
-D TFT_DC=11 | ||
-D TFT_RST=-1 | ||
-D TFT_BUSY=-1 | ||
-D TFT_BL=42 | ||
-D TFT_BACKLIGHT_ON=1 | ||
-D TOUCH_CS=-1 | ||
-D LOAD_GLCD | ||
-D LOAD_FONT2 | ||
-D LOAD_FONT4 | ||
-D LOAD_FONT6 | ||
-D LOAD_FONT7 | ||
-D LOAD_FONT8 | ||
-D SPI_FREQUENCY=40000000 | ||
-D SPI_READ_FREQUENCY=16000000 | ||
lib_deps = | ||
${common.lib_deps} | ||
bodmer/TFT_eSPI @ 2.5.43 | ||
https://github.com/mmMicky/TouchLib.git |