-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from cosmicpsyop/feature/lilygo-t-hmi-dev-too
feature: add lilygo t-hmi duex
- Loading branch information
Showing
11 changed files
with
1,918 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"build": { | ||
"arduino":{ | ||
"ldscript": "esp32s3_out.ld", | ||
"memory_type": "qio_opi", | ||
"partitions": "default_16MB.csv" | ||
}, | ||
"core": "esp32", | ||
"extra_flags": [ | ||
"-DBOARD_HAS_PSRAM", | ||
"-DARDUINO_USB_MODE=1" | ||
], | ||
"f_cpu": "240000000L", | ||
"f_flash": "80000000L", | ||
"flash_mode": "qio", | ||
"hwids": [ | ||
[ | ||
"0X303A", | ||
"0x1001" | ||
] | ||
], | ||
"mcu": "esp32s3", | ||
"variant": "esp32s3" | ||
}, | ||
"connectivity": [ | ||
"wifi", | ||
"bluetooth" | ||
], | ||
"debug": { | ||
"openocd_target": "esp32s3.cfg" | ||
}, | ||
"frameworks": [ | ||
"arduino", | ||
"espidf" | ||
], | ||
"name": "LILYGO T-HMI", | ||
"upload": { | ||
"flash_size": "16MB", | ||
"maximum_ram_size": 327680, | ||
"maximum_size": 16777216, | ||
"require_upload_port": true, | ||
"speed": 921600 | ||
}, | ||
"url": "https://www.adafruit.com/product/5290", | ||
"vendor": "LILYGO" | ||
} |
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,42 @@ | ||
#ifndef _NERD_MINER_T_HMI_H | ||
#define _NERD_MINER_T_HMI_H | ||
|
||
#define T_HMI_DISPLAY | ||
|
||
#define PWR_EN_PIN (10) | ||
#define PWR_ON_PIN (14) | ||
#define BAT_ADC_PIN (5) | ||
#define BUTTON1_PIN (0) | ||
#define BUTTON2_PIN (21) | ||
|
||
#define PIN_BUTTON_1 BUTTON1_PIN | ||
// #define PIN_BUTTON_2 BUTTON2_PIN | ||
|
||
|
||
// touch screen | ||
#define TOUCHSCREEN_SCLK_PIN (1) | ||
#define TOUCHSCREEN_MISO_PIN (4) | ||
#define TOUCHSCREEN_MOSI_PIN (3) | ||
#define TOUCHSCREEN_CS_PIN (2) | ||
#define TOUCHSCREEN_IRQ_PIN (9) | ||
#define TOUCH_CLK TOUCHSCREEN_SCLK_PIN | ||
#define TOUCH_MISO TOUCHSCREEN_MISO_PIN | ||
#define TOUCH_MOSI TOUCHSCREEN_MOSI_PIN | ||
#define ETOUCH_CS TOUCHSCREEN_CS_PIN | ||
|
||
|
||
// lcd | ||
#define PCLK_PIN (8) | ||
#define CS_PIN (6) | ||
#define DC_PIN (7) | ||
#define RST_PIN (-1) | ||
#define BK_LIGHT_PIN (38) | ||
#define LED_PIN (8) | ||
|
||
#ifndef TFT_BL | ||
// XXX - defined in User_Setups/Setup207_LilyGo_T_HMI.h:37 | ||
#define TFT_BL (38) // LED back-light | ||
#endif | ||
|
||
|
||
#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
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
Oops, something went wrong.