mirror of
https://github.com/Xinyuan-LilyGO/T-Display-S3.git
synced 2024-09-21 09:57:26 +00:00
Add compile check
This commit is contained in:
parent
bb3701bb46
commit
5f448d5329
@ -1,17 +1,11 @@
|
||||
#include "Arduino.h"
|
||||
#include "TFT_eSPI.h" /* Please use the TFT library provided in the library. */
|
||||
#include <esp_adc_cal.h>
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
#include "pin_config.h"
|
||||
|
||||
/* The product now has two screens, and the initialization code needs a small change in the new version. The LCD_MODULE_CMD_1 is used to define the
|
||||
* switch macro. */
|
||||
#define LCD_MODULE_CMD_1
|
||||
#define PIN_POWER_ON 15
|
||||
#define PIN_BAT_VOLT 4
|
||||
#define PIN_LCD_BL 38
|
||||
|
||||
TFT_eSPI tft = TFT_eSPI();
|
||||
unsigned long targetTime = 0;
|
||||
@ -102,3 +96,33 @@ void loop()
|
||||
}
|
||||
delay(20);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
32
examples/GetBatteryVoltage/pin_config.h
Normal file
32
examples/GetBatteryVoltage/pin_config.h
Normal file
@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
/*ESP32S3*/
|
||||
#define PIN_LCD_BL 38
|
||||
|
||||
#define PIN_LCD_D0 39
|
||||
#define PIN_LCD_D1 40
|
||||
#define PIN_LCD_D2 41
|
||||
#define PIN_LCD_D3 42
|
||||
#define PIN_LCD_D4 45
|
||||
#define PIN_LCD_D5 46
|
||||
#define PIN_LCD_D6 47
|
||||
#define PIN_LCD_D7 48
|
||||
|
||||
#define PIN_POWER_ON 15
|
||||
|
||||
#define PIN_LCD_RES 5
|
||||
#define PIN_LCD_CS 6
|
||||
#define PIN_LCD_DC 7
|
||||
#define PIN_LCD_WR 8
|
||||
#define PIN_LCD_RD 9
|
||||
|
||||
#define PIN_BUTTON_1 0
|
||||
#define PIN_BUTTON_2 14
|
||||
#define PIN_BAT_VOLT 4
|
||||
|
||||
#define PIN_IIC_SCL 17
|
||||
#define PIN_IIC_SDA 18
|
||||
|
||||
#define PIN_TOUCH_INT 16
|
||||
#define PIN_TOUCH_RES 21
|
@ -6,13 +6,13 @@
|
||||
* @date 2023-08-17
|
||||
* @note Sketch Adaptation for T-Display S3
|
||||
*/
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
||||
|
||||
#include "TFT_eSPI.h"
|
||||
//#include "World_Time_Zones.h"
|
||||
#include "Germany.h"
|
||||
#include "pin_config.h"
|
||||
|
||||
TFT_eSPI tft = TFT_eSPI();
|
||||
TFT_eSprite sprite = TFT_eSprite(&tft);
|
||||
|
||||
@ -71,3 +71,32 @@ void loop()
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
32
examples/ImageScroll/pin_config.h
Normal file
32
examples/ImageScroll/pin_config.h
Normal file
@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
/*ESP32S3*/
|
||||
#define PIN_LCD_BL 38
|
||||
|
||||
#define PIN_LCD_D0 39
|
||||
#define PIN_LCD_D1 40
|
||||
#define PIN_LCD_D2 41
|
||||
#define PIN_LCD_D3 42
|
||||
#define PIN_LCD_D4 45
|
||||
#define PIN_LCD_D5 46
|
||||
#define PIN_LCD_D6 47
|
||||
#define PIN_LCD_D7 48
|
||||
|
||||
#define PIN_POWER_ON 15
|
||||
|
||||
#define PIN_LCD_RES 5
|
||||
#define PIN_LCD_CS 6
|
||||
#define PIN_LCD_DC 7
|
||||
#define PIN_LCD_WR 8
|
||||
#define PIN_LCD_RD 9
|
||||
|
||||
#define PIN_BUTTON_1 0
|
||||
#define PIN_BUTTON_2 14
|
||||
#define PIN_BAT_VOLT 4
|
||||
|
||||
#define PIN_IIC_SCL 17
|
||||
#define PIN_IIC_SDA 18
|
||||
|
||||
#define PIN_TOUCH_INT 16
|
||||
#define PIN_TOUCH_RES 21
|
@ -5,6 +5,8 @@
|
||||
#include "time.h"
|
||||
#include "fonts.h"
|
||||
#include "background.h"
|
||||
#include "pin_config.h"
|
||||
|
||||
TFT_eSPI tft = TFT_eSPI();
|
||||
TFT_eSprite sprite = TFT_eSprite(&tft);
|
||||
|
||||
@ -135,3 +137,32 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
||||
|
32
examples/PCBClock/pin_config.h
Normal file
32
examples/PCBClock/pin_config.h
Normal file
@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
/*ESP32S3*/
|
||||
#define PIN_LCD_BL 38
|
||||
|
||||
#define PIN_LCD_D0 39
|
||||
#define PIN_LCD_D1 40
|
||||
#define PIN_LCD_D2 41
|
||||
#define PIN_LCD_D3 42
|
||||
#define PIN_LCD_D4 45
|
||||
#define PIN_LCD_D5 46
|
||||
#define PIN_LCD_D6 47
|
||||
#define PIN_LCD_D7 48
|
||||
|
||||
#define PIN_POWER_ON 15
|
||||
|
||||
#define PIN_LCD_RES 5
|
||||
#define PIN_LCD_CS 6
|
||||
#define PIN_LCD_DC 7
|
||||
#define PIN_LCD_WR 8
|
||||
#define PIN_LCD_RD 9
|
||||
|
||||
#define PIN_BUTTON_1 0
|
||||
#define PIN_BUTTON_2 14
|
||||
#define PIN_BAT_VOLT 4
|
||||
|
||||
#define PIN_IIC_SCL 17
|
||||
#define PIN_IIC_SDA 18
|
||||
|
||||
#define PIN_TOUCH_INT 16
|
||||
#define PIN_TOUCH_RES 21
|
@ -5,6 +5,8 @@
|
||||
#include "NotoSansBold15.h"
|
||||
#include "cards.h"
|
||||
#include "OneButton.h"
|
||||
#include "pin_config.h"
|
||||
|
||||
#define up 14
|
||||
#define down 0
|
||||
|
||||
@ -323,3 +325,31 @@ void loop()
|
||||
readButtons();
|
||||
|
||||
}
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
32
examples/PokerS3/pin_config.h
Normal file
32
examples/PokerS3/pin_config.h
Normal file
@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
/*ESP32S3*/
|
||||
#define PIN_LCD_BL 38
|
||||
|
||||
#define PIN_LCD_D0 39
|
||||
#define PIN_LCD_D1 40
|
||||
#define PIN_LCD_D2 41
|
||||
#define PIN_LCD_D3 42
|
||||
#define PIN_LCD_D4 45
|
||||
#define PIN_LCD_D5 46
|
||||
#define PIN_LCD_D6 47
|
||||
#define PIN_LCD_D7 48
|
||||
|
||||
#define PIN_POWER_ON 15
|
||||
|
||||
#define PIN_LCD_RES 5
|
||||
#define PIN_LCD_CS 6
|
||||
#define PIN_LCD_DC 7
|
||||
#define PIN_LCD_WR 8
|
||||
#define PIN_LCD_RD 9
|
||||
|
||||
#define PIN_BUTTON_1 0
|
||||
#define PIN_BUTTON_2 14
|
||||
#define PIN_BAT_VOLT 4
|
||||
|
||||
#define PIN_IIC_SCL 17
|
||||
#define PIN_IIC_SDA 18
|
||||
|
||||
#define PIN_TOUCH_INT 16
|
||||
#define PIN_TOUCH_RES 21
|
@ -17,9 +17,7 @@
|
||||
#include <SPI.h>
|
||||
#include "pin_config.h"
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
||||
|
||||
TFT_eSPI tft = TFT_eSPI(); // Invoke library, pins defined in User_Setup.h
|
||||
|
||||
@ -145,6 +143,33 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <nes/nesinput.h>
|
||||
#include <nofconfig.h>
|
||||
#include <osd.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
TimerHandle_t timer;
|
||||
|
||||
|
@ -3,17 +3,14 @@
|
||||
#include <WiFiUdp.h>
|
||||
#include <ArduinoOTA.h>
|
||||
#include <TFT_eSPI.h>
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
#include "pin_config.h"
|
||||
|
||||
#define PIN_POWER_ON 15
|
||||
|
||||
TFT_eSPI tft = TFT_eSPI();
|
||||
|
||||
const char *ssid = "LilyGo-AABB";
|
||||
const char *password = "xinyuandianzi";
|
||||
const char *ssid = "Your WIFI SSID";
|
||||
const char *password = "Your WIFI PASSWORD";
|
||||
|
||||
void drawProgressBar(uint16_t x0, uint16_t y0, uint16_t w, uint16_t h, uint8_t percentage, uint16_t frameColor, uint16_t barColor)
|
||||
{
|
||||
@ -111,4 +108,32 @@ void setup()
|
||||
void loop()
|
||||
{
|
||||
ArduinoOTA.handle();
|
||||
}
|
||||
}
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
32
examples/ota/pin_config.h
Normal file
32
examples/ota/pin_config.h
Normal file
@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
/*ESP32S3*/
|
||||
#define PIN_LCD_BL 38
|
||||
|
||||
#define PIN_LCD_D0 39
|
||||
#define PIN_LCD_D1 40
|
||||
#define PIN_LCD_D2 41
|
||||
#define PIN_LCD_D3 42
|
||||
#define PIN_LCD_D4 45
|
||||
#define PIN_LCD_D5 46
|
||||
#define PIN_LCD_D6 47
|
||||
#define PIN_LCD_D7 48
|
||||
|
||||
#define PIN_POWER_ON 15
|
||||
|
||||
#define PIN_LCD_RES 5
|
||||
#define PIN_LCD_CS 6
|
||||
#define PIN_LCD_DC 7
|
||||
#define PIN_LCD_WR 8
|
||||
#define PIN_LCD_RD 9
|
||||
|
||||
#define PIN_BUTTON_1 0
|
||||
#define PIN_BUTTON_2 14
|
||||
#define PIN_BAT_VOLT 4
|
||||
|
||||
#define PIN_IIC_SCL 17
|
||||
#define PIN_IIC_SDA 18
|
||||
|
||||
#define PIN_TOUCH_INT 16
|
||||
#define PIN_TOUCH_RES 21
|
@ -3,9 +3,6 @@
|
||||
#include "img_logo.h"
|
||||
#include "pin_config.h"
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
||||
/* The product now has two screens, and the initialization code needs a small change in the new version. The LCD_MODULE_CMD_1 is used to define the
|
||||
* switch macro. */
|
||||
@ -235,3 +232,32 @@ void loop()
|
||||
tft.drawNumber(millis() - targetTime, 0, 100, 4);
|
||||
delay(4000);
|
||||
}
|
||||
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
@ -18,9 +18,7 @@
|
||||
* switch macro. */
|
||||
// #define LCD_MODULE_CMD_1
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
||||
|
||||
#warning Please confirm that you have purchased a display screen with a touch chip, otherwise the touch routine cannot be implemented.
|
||||
#if defined(TOUCH_MODULES_CST_MUTUAL)
|
||||
@ -158,3 +156,32 @@ void loop()
|
||||
}
|
||||
delay(1);
|
||||
}
|
||||
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
@ -3,9 +3,6 @@
|
||||
// #define TOUCH_MODULES_CST_SELF
|
||||
#include "TouchLib.h"
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
||||
|
||||
#if ARDUINO_USB_MODE
|
||||
#warning This sketch should be used when USB is in OTG mode
|
||||
@ -156,4 +153,34 @@ void loop()
|
||||
delay(5);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
// TFT Pin check
|
||||
#if PIN_LCD_WR != TFT_WR || \
|
||||
PIN_LCD_RD != TFT_RD || \
|
||||
PIN_LCD_CS != TFT_CS || \
|
||||
PIN_LCD_DC != TFT_DC || \
|
||||
PIN_LCD_RES != TFT_RST || \
|
||||
PIN_LCD_D0 != TFT_D0 || \
|
||||
PIN_LCD_D1 != TFT_D1 || \
|
||||
PIN_LCD_D2 != TFT_D2 || \
|
||||
PIN_LCD_D3 != TFT_D3 || \
|
||||
PIN_LCD_D4 != TFT_D4 || \
|
||||
PIN_LCD_D5 != TFT_D5 || \
|
||||
PIN_LCD_D6 != TFT_D6 || \
|
||||
PIN_LCD_D7 != TFT_D7 || \
|
||||
PIN_LCD_BL != TFT_BL || \
|
||||
TFT_BACKLIGHT_ON != HIGH || \
|
||||
170 != TFT_WIDTH || \
|
||||
320 != TFT_HEIGHT
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#error "Error! Please make sure <User_Setups/Setup206_LilyGo_T_Display_S3.h> is selected in <TFT_eSPI/User_Setup_Select.h>"
|
||||
#endif
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5,0,0)
|
||||
#error "The current version is not supported for the time being, please use a version below Arduino ESP32 3.0"
|
||||
#endif
|
160
platformio.ini
160
platformio.ini
@ -11,7 +11,7 @@
|
||||
[platformio]
|
||||
|
||||
; default_envs = Arduino_GFX_PDQgraphicstest
|
||||
default_envs = Arduino_GFXDemo
|
||||
; default_envs = Arduino_GFXDemo
|
||||
; default_envs = factory
|
||||
; default_envs = lv_demos
|
||||
; default_envs = nes
|
||||
@ -51,29 +51,187 @@ build_flags =
|
||||
; -DTOUCH_MODULES_CST_SELF
|
||||
|
||||
[env:Arduino_GFX_PDQgraphicstest]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:Arduino_GFXDemo]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:factory]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
|
||||
[env:lv_demos]
|
||||
build_flags = ${env.build_flags}
|
||||
-D USEPLATFORMIO
|
||||
build_src_filter = ${env.build_src_filter}
|
||||
+<../../lib/lvgl/demos>
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
|
||||
[env:nes]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
Adafruit MPR121
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
|
||||
[env:sd]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:tft]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:TFT_Rainbow]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:ImageScroll]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:touch_test]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:SerialExample]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:MPR121TouchSensor]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:I2CScan]
|
||||
lib_ignore =
|
||||
TFT_eSPI
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:usb_hid_pad]
|
||||
build_flags = -DARDUINO_USB_MODE=0
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:ota]
|
||||
upload_protocol = espota
|
||||
; Change to the IP address of the board
|
||||
upload_port = 192.168.36.172
|
||||
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
|
||||
[env:T-Display-S3-MIDI]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
DabbleESP32
|
||||
lvgl
|
||||
|
||||
[env:GetBatteryVoltage]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:PokerS3]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
[env:PCBClock]
|
||||
lib_ignore =
|
||||
GFX Library for Arduino
|
||||
arduino-nofrendo
|
||||
Adafruit MPR121
|
||||
DabbleESP32
|
||||
PCF8575 library
|
||||
PCA95x5
|
||||
lvgl
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user