├── 03-JSON Config ├── README.md ├── ESP IDF │ └── README.md ├── Arduino IDE │ └── README.md └── Arduino PIO │ └── json_config │ ├── README.md │ ├── .gitignore │ ├── .vscode │ └── extensions.json │ └── platformio.ini ├── 07-SSL ├── Arduino IDE │ └── README.md ├── ESP IDF │ └── README.md └── Arduino PIO │ └── ssl │ ├── README.md │ ├── .gitignore │ ├── .vscode │ └── extensions.json │ └── platformio.ini ├── 01-Simple_FOTA ├── ESP-IDF │ ├── README.md │ └── simple_fota │ │ ├── sdkconfig.ci │ │ ├── main │ │ ├── CMakeLists.txt │ │ └── idf_component.yml │ │ ├── img │ │ ├── idf-flashsize.JPG │ │ └── idf-ota-partition.JPG │ │ ├── .vscode │ │ ├── launch.json │ │ ├── settings.json │ │ └── c_cpp_properties.json │ │ ├── CMakeLists.txt │ │ ├── README.md │ │ └── .gitignore ├── Arduino IDE │ └── README.md └── Arduino PIO │ └── simple_fota │ ├── README.md │ ├── .gitignore │ ├── platformio.ini │ └── .vscode │ └── extensions.json ├── 04-Simple Resources ├── README.md ├── ESP IDF │ └── README.md └── Arduino PIO │ └── simple_resource │ ├── README.md │ ├── .gitignore │ ├── HTML │ ├── OFF.png │ ├── ON.png │ └── index.html │ ├── .vscode │ └── extensions.json │ └── platformio.ini ├── 02-Simple_Config ├── Arduino IDE │ └── README.md ├── ESP-IDF │ ├── README.md │ └── simple_config │ │ ├── sdkconfig.ci │ │ ├── main │ │ ├── CMakeLists.txt │ │ └── idf_component.yml │ │ ├── .vscode │ │ ├── launch.json │ │ ├── settings.json │ │ └── c_cpp_properties.json │ │ ├── CMakeLists.txt │ │ └── .gitignore ├── Arduino PIO │ └── simple_config │ │ ├── README.md │ │ ├── .gitignore │ │ ├── .vscode │ │ └── extensions.json │ │ └── platformio.ini ├── img │ └── ex02-esp32-SimpleConfig-img1.png └── README.md ├── 06-ProgressBar OTA ├── ESP IDF │ └── Ignore.txt ├── Arduino PIO │ └── progressbar_ota │ │ ├── lib │ │ └── TFT_eSPI │ │ │ ├── Fonts │ │ │ ├── TrueType │ │ │ │ └── Not_yet_supported.txt │ │ │ ├── Font16.h │ │ │ ├── Font32rle.h │ │ │ ├── Font64rle.h │ │ │ ├── Font72rle.h │ │ │ ├── Font7srle.h │ │ │ └── Font72x53rle.h │ │ │ ├── CMakeLists.txt │ │ │ ├── .piopm │ │ │ ├── Tools │ │ │ ├── bmp2array4bit │ │ │ │ ├── star.bmp │ │ │ │ └── README.md │ │ │ └── Create_Smooth_Font │ │ │ │ └── Create_font │ │ │ │ ├── data │ │ │ │ └── Final-Frontier.ttf │ │ │ │ └── FontFiles │ │ │ │ └── Final-Frontier28.vlw │ │ │ ├── README.txt │ │ │ ├── library.properties │ │ │ ├── .gitattributes │ │ │ ├── TFT_Drivers │ │ │ ├── ST7789_2_Init.h │ │ │ ├── SSD1351_Defines.h │ │ │ ├── EPD_Defines.h │ │ │ ├── S6D02A1_Rotation.h │ │ │ ├── SSD1963_Rotation.h │ │ │ ├── ILI9481_Rotation.h │ │ │ ├── ILI9488_Rotation.h │ │ │ ├── R61581_Rotation.h │ │ │ ├── RM68120_Rotation.h │ │ │ ├── GC9A01_Rotation.h │ │ │ ├── SSD1351_Rotation.h │ │ │ ├── HX8357D_Rotation.h │ │ │ ├── GC9A01_Defines.h │ │ │ ├── SSD1351_Init.h │ │ │ ├── ILI9481_Defines.h │ │ │ ├── ILI9488_Defines.h │ │ │ ├── R61581_Defines.h │ │ │ ├── RM68140_Defines.h │ │ │ ├── ILI9163_Rotation.h │ │ │ ├── RM68140_Rotation.h │ │ │ ├── RM68120_Defines.h │ │ │ ├── ILI9225_Rotation.h │ │ │ ├── HX8357B_Defines.h │ │ │ └── HX8357C_Defines.h │ │ │ ├── User_Setups │ │ │ ├── Setup204_ESP32_TouchDown.h │ │ │ ├── Setup71_ESP32_S2_ST7789.h │ │ │ ├── Setup205_ESP32_TouchDown_S3.h │ │ │ ├── Setup22_TTGO_T4_v1.3.h │ │ │ ├── Setup22_TTGO_T4.h │ │ │ ├── Setup70d_ILI9488_S3_Parallel.h │ │ │ ├── Setup206_LilyGo_T_Display_S3.h │ │ │ ├── Setup25_TTGO_T_Display.h │ │ │ ├── Setup70_ESP32_S2_ILI9341.h │ │ │ ├── Setup70b_ESP32_S3_ILI9341.h │ │ │ ├── Setup23_TTGO_TM.h │ │ │ ├── Setup70c_ESP32_C3_ILI9341.h │ │ │ ├── Setup45_TTGO_T_Watch.h │ │ │ ├── Setup46_GC9A01_ESP32.h │ │ │ ├── Setup12_M5Stack_Basic_Core.h │ │ │ ├── Setup44_TTGO_CameraPlus.h │ │ │ ├── Setup36_RPi_touch_ST7796.h │ │ │ └── Setup51_LilyPi_ILI9481.h │ │ │ ├── .gitignore │ │ │ └── library.json │ │ ├── .gitignore │ │ ├── platformio.ini │ │ └── .vscode │ │ └── extensions.json ├── img │ ├── ex02-esp32-SimpleConfig-img1.gif │ └── ex02-esp32-SimpleConfig-img2.png └── README.md ├── 08-GSM Modem OTA ├── ESP IDF │ └── Ignore.txt └── Arduino PIO │ └── gsm_modem_ota │ ├── README.md │ ├── .gitignore │ ├── .vscode │ ├── settings.json │ └── extensions.json │ └── platformio.ini ├── 05-HTML & Images OTA ├── ESP IDF │ └── Ignore.txt ├── Arduino PIO │ └── html&images_ota │ │ ├── README.md │ │ ├── lib │ │ └── TFT_eSPI │ │ │ ├── Fonts │ │ │ ├── TrueType │ │ │ │ └── Not_yet_supported.txt │ │ │ ├── Font16.h │ │ │ ├── Font32rle.h │ │ │ ├── Font64rle.h │ │ │ ├── Font72rle.h │ │ │ ├── Font7srle.h │ │ │ └── Font72x53rle.h │ │ │ ├── CMakeLists.txt │ │ │ ├── .piopm │ │ │ ├── Tools │ │ │ ├── bmp2array4bit │ │ │ │ ├── star.bmp │ │ │ │ └── README.md │ │ │ └── Create_Smooth_Font │ │ │ │ └── Create_font │ │ │ │ ├── data │ │ │ │ └── Final-Frontier.ttf │ │ │ │ └── FontFiles │ │ │ │ └── Final-Frontier28.vlw │ │ │ ├── README.txt │ │ │ ├── library.properties │ │ │ ├── .gitattributes │ │ │ ├── TFT_Drivers │ │ │ ├── ST7789_2_Init.h │ │ │ ├── SSD1351_Defines.h │ │ │ ├── EPD_Defines.h │ │ │ ├── S6D02A1_Rotation.h │ │ │ ├── SSD1963_Rotation.h │ │ │ ├── R61581_Rotation.h │ │ │ ├── ILI9481_Rotation.h │ │ │ ├── ILI9488_Rotation.h │ │ │ ├── RM68120_Rotation.h │ │ │ ├── GC9A01_Rotation.h │ │ │ ├── SSD1351_Rotation.h │ │ │ ├── HX8357D_Rotation.h │ │ │ ├── GC9A01_Defines.h │ │ │ ├── SSD1351_Init.h │ │ │ ├── R61581_Defines.h │ │ │ ├── ILI9481_Defines.h │ │ │ ├── ILI9488_Defines.h │ │ │ ├── RM68140_Defines.h │ │ │ ├── ILI9163_Rotation.h │ │ │ ├── RM68140_Rotation.h │ │ │ ├── RM68120_Defines.h │ │ │ ├── ILI9225_Rotation.h │ │ │ ├── HX8357B_Defines.h │ │ │ └── HX8357C_Defines.h │ │ │ ├── User_Setups │ │ │ ├── Setup204_ESP32_TouchDown.h │ │ │ ├── Setup71_ESP32_S2_ST7789.h │ │ │ ├── Setup205_ESP32_TouchDown_S3.h │ │ │ ├── Setup22_TTGO_T4_v1.3.h │ │ │ ├── Setup22_TTGO_T4.h │ │ │ ├── Setup70d_ILI9488_S3_Parallel.h │ │ │ ├── Setup206_LilyGo_T_Display_S3.h │ │ │ ├── Setup25_TTGO_T_Display.h │ │ │ ├── Setup70_ESP32_S2_ILI9341.h │ │ │ ├── Setup70b_ESP32_S3_ILI9341.h │ │ │ ├── Setup23_TTGO_TM.h │ │ │ ├── Setup70c_ESP32_C3_ILI9341.h │ │ │ ├── Setup45_TTGO_T_Watch.h │ │ │ ├── Setup46_GC9A01_ESP32.h │ │ │ ├── Setup12_M5Stack_Basic_Core.h │ │ │ ├── Setup44_TTGO_CameraPlus.h │ │ │ ├── Setup36_RPi_touch_ST7796.h │ │ │ └── Setup51_LilyPi_ILI9481.h │ │ │ ├── .gitignore │ │ │ └── library.json │ │ ├── .gitignore │ │ ├── HTML │ │ ├── ON.png │ │ ├── OFF.png │ │ └── index.html │ │ ├── platformio.ini │ │ ├── .vscode │ │ └── extensions.json │ │ └── test │ │ └── README ├── img │ ├── TTGO-1.jpg │ ├── HTMLserver1.JPG │ ├── htmlupld1.jpg │ └── htmlupld2.jpg └── README.md └── 09-TTGO GSM Modem OTA ├── ESP IDF └── Ignore.txt └── Arduino PIO └── ttgo_gsm_modem_ota ├── README.md ├── lib └── TFT_eSPI │ ├── Fonts │ ├── TrueType │ │ └── Not_yet_supported.txt │ ├── Font16.h │ ├── Font32rle.h │ ├── Font64rle.h │ ├── Font72rle.h │ ├── Font7srle.h │ └── Font72x53rle.h │ ├── CMakeLists.txt │ ├── .piopm │ ├── Tools │ ├── bmp2array4bit │ │ ├── star.bmp │ │ └── README.md │ └── Create_Smooth_Font │ │ └── Create_font │ │ ├── data │ │ └── Final-Frontier.ttf │ │ └── FontFiles │ │ └── Final-Frontier28.vlw │ ├── README.txt │ ├── library.properties │ ├── .gitattributes │ ├── TFT_Drivers │ ├── ST7789_2_Init.h │ ├── SSD1351_Defines.h │ ├── EPD_Defines.h │ ├── S6D02A1_Rotation.h │ ├── SSD1963_Rotation.h │ ├── ILI9481_Rotation.h │ ├── ILI9488_Rotation.h │ ├── R61581_Rotation.h │ ├── RM68120_Rotation.h │ ├── GC9A01_Rotation.h │ ├── SSD1351_Rotation.h │ ├── HX8357D_Rotation.h │ ├── GC9A01_Defines.h │ ├── SSD1351_Init.h │ ├── ILI9481_Defines.h │ ├── ILI9488_Defines.h │ ├── R61581_Defines.h │ ├── RM68140_Defines.h │ ├── ILI9163_Rotation.h │ ├── RM68140_Rotation.h │ ├── RM68120_Defines.h │ ├── ILI9225_Rotation.h │ ├── HX8357B_Defines.h │ └── HX8357C_Defines.h │ ├── User_Setups │ ├── Setup204_ESP32_TouchDown.h │ ├── Setup71_ESP32_S2_ST7789.h │ ├── Setup205_ESP32_TouchDown_S3.h │ ├── Setup22_TTGO_T4_v1.3.h │ ├── Setup22_TTGO_T4.h │ ├── Setup70d_ILI9488_S3_Parallel.h │ ├── Setup206_LilyGo_T_Display_S3.h │ ├── Setup25_TTGO_T_Display.h │ ├── Setup70_ESP32_S2_ILI9341.h │ ├── Setup70b_ESP32_S3_ILI9341.h │ ├── Setup23_TTGO_TM.h │ ├── Setup70c_ESP32_C3_ILI9341.h │ ├── Setup45_TTGO_T_Watch.h │ ├── Setup46_GC9A01_ESP32.h │ ├── Setup12_M5Stack_Basic_Core.h │ ├── Setup44_TTGO_CameraPlus.h │ └── Setup36_RPi_touch_ST7796.h │ ├── .gitignore │ └── library.json ├── .gitignore ├── .vscode ├── settings.json └── extensions.json └── platformio.ini /03-JSON Config/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /07-SSL/Arduino IDE/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /07-SSL/ESP IDF/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /03-JSON Config/ESP IDF/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04-Simple Resources/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /07-SSL/Arduino PIO/ssl/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /01-Simple_FOTA/Arduino IDE/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /02-Simple_Config/Arduino IDE/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /03-JSON Config/Arduino IDE/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04-Simple Resources/ESP IDF/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/ESP IDF/Ignore.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08-GSM Modem OTA/ESP IDF/Ignore.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/ESP IDF/Ignore.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/ESP IDF/Ignore.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /01-Simple_FOTA/Arduino PIO/simple_fota/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/sdkconfig.ci: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /03-JSON Config/Arduino PIO/json_config/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /02-Simple_Config/Arduino PIO/simple_config/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/sdkconfig.ci: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08-GSM Modem OTA/Arduino PIO/gsm_modem_ota/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04-Simple Resources/Arduino PIO/simple_resource/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/main/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | idf_component_register(SRCS "main.c" 2 | INCLUDE_DIRS ".") 3 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/img/TTGO-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/img/TTGO-1.jpg -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/main/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | idf_component_register(SRCS "main.c" 2 | INCLUDE_DIRS ".") 3 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/img/HTMLserver1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/img/HTMLserver1.JPG -------------------------------------------------------------------------------- /05-HTML & Images OTA/img/htmlupld1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/img/htmlupld1.jpg -------------------------------------------------------------------------------- /05-HTML & Images OTA/img/htmlupld2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/img/htmlupld2.jpg -------------------------------------------------------------------------------- /07-SSL/Arduino PIO/ssl/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /01-Simple_FOTA/Arduino PIO/simple_fota/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /03-JSON Config/Arduino PIO/json_config/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Fonts/TrueType/Not_yet_supported.txt: -------------------------------------------------------------------------------- 1 | TO DO: Add support for converted True Type fonts in an RLE format. -------------------------------------------------------------------------------- /02-Simple_Config/Arduino PIO/simple_config/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Fonts/TrueType/Not_yet_supported.txt: -------------------------------------------------------------------------------- 1 | TO DO: Add support for converted True Type fonts in an RLE format. -------------------------------------------------------------------------------- /08-GSM Modem OTA/Arduino PIO/gsm_modem_ota/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Fonts/TrueType/Not_yet_supported.txt: -------------------------------------------------------------------------------- 1 | TO DO: Add support for converted True Type fonts in an RLE format. -------------------------------------------------------------------------------- /04-Simple Resources/Arduino PIO/simple_resource/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /02-Simple_Config/img/ex02-esp32-SimpleConfig-img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/02-Simple_Config/img/ex02-esp32-SimpleConfig-img1.png -------------------------------------------------------------------------------- /06-ProgressBar OTA/img/ex02-esp32-SimpleConfig-img1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/06-ProgressBar OTA/img/ex02-esp32-SimpleConfig-img1.gif -------------------------------------------------------------------------------- /06-ProgressBar OTA/img/ex02-esp32-SimpleConfig-img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/06-ProgressBar OTA/img/ex02-esp32-SimpleConfig-img2.png -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode/.browse.c_cpp.db* 3 | .vscode/c_cpp_properties.json 4 | .vscode/launch.json 5 | .vscode/ipch 6 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/img/idf-flashsize.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/01-Simple_FOTA/ESP-IDF/simple_fota/img/idf-flashsize.JPG -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/img/idf-ota-partition.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/01-Simple_FOTA/ESP-IDF/simple_fota/img/idf-ota-partition.JPG -------------------------------------------------------------------------------- /04-Simple Resources/Arduino PIO/simple_resource/HTML/OFF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/04-Simple Resources/Arduino PIO/simple_resource/HTML/OFF.png -------------------------------------------------------------------------------- /04-Simple Resources/Arduino PIO/simple_resource/HTML/ON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/04-Simple Resources/Arduino PIO/simple_resource/HTML/ON.png -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/HTML/ON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/Arduino PIO/html&images_ota/HTML/ON.png -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/HTML/OFF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/Arduino PIO/html&images_ota/HTML/OFF.png -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | idf_component_register(SRCS "TFT_eSPI.cpp" 3 | INCLUDE_DIRS "." 4 | PRIV_REQUIRES arduino) -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | idf_component_register(SRCS "TFT_eSPI.cpp" 3 | INCLUDE_DIRS "." 4 | PRIV_REQUIRES arduino) -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | idf_component_register(SRCS "TFT_eSPI.cpp" 3 | INCLUDE_DIRS "." 4 | PRIV_REQUIRES arduino) -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/.piopm: -------------------------------------------------------------------------------- 1 | {"type": "library", "name": "TFT_eSPI", "version": "2.5.2", "spec": {"owner": "bodmer", "id": 1559, "name": "TFT_eSPI", "requirements": null, "uri": null}} -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/.piopm: -------------------------------------------------------------------------------- 1 | {"type": "library", "name": "TFT_eSPI", "version": "2.5.2", "spec": {"owner": "bodmer", "id": 1559, "name": "TFT_eSPI", "requirements": null, "uri": null}} -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/.piopm: -------------------------------------------------------------------------------- 1 | {"type": "library", "name": "TFT_eSPI", "version": "2.5.2", "spec": {"owner": "bodmer", "id": 1559, "name": "TFT_eSPI", "requirements": null, "uri": null}} -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "type": "espidf", 6 | "name": "Launch", 7 | "request": "launch" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/main/idf_component.yml: -------------------------------------------------------------------------------- 1 | ## IDF Component Manager Manifest File 2 | dependencies: 3 | OTAdrive/otadrive_esp: 4 | version: '2.0.6' 5 | ## Required IDF version 6 | idf: 7 | version: ">=4.4.0" 8 | -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "type": "espidf", 6 | "name": "Launch", 7 | "request": "launch" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /01-Simple_FOTA/Arduino PIO/simple_fota/platformio.ini: -------------------------------------------------------------------------------- 1 | [env:esp32] 2 | platform = espressif32 3 | board = wemos_d1_mini32 4 | framework = arduino 5 | lib_deps = otadrive/OTAdrive 6 | build_flags = 7 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/main/idf_component.yml: -------------------------------------------------------------------------------- 1 | ## IDF Component Manager Manifest File 2 | dependencies: 3 | OTAdrive/otadrive_esp: 4 | version: '2.0.5' 5 | ## Required IDF version 6 | idf: 7 | version: ">=4.4.0" 8 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Tools/bmp2array4bit/star.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Tools/bmp2array4bit/star.bmp -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Tools/bmp2array4bit/star.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Tools/bmp2array4bit/star.bmp -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/platformio.ini: -------------------------------------------------------------------------------- 1 | [env:esp32] 2 | platform = espressif32 3 | board = ttgo-t1 4 | framework = arduino 5 | lib_deps = 6 | otadrive/OTAdrive 7 | build_flags = 8 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Tools/bmp2array4bit/star.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Tools/bmp2array4bit/star.bmp -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/platformio.ini: -------------------------------------------------------------------------------- 1 | [env:esp32] 2 | platform = espressif32 3 | board = ttgo-t1 4 | framework = arduino 5 | lib_deps = 6 | otadrive/OTAdrive 7 | ottowinter/ESPAsyncWebServer-esphome@^3.1.0 8 | build_flags = 9 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/data/Final-Frontier.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/data/Final-Frontier.ttf -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/data/Final-Frontier.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/data/Final-Frontier.ttf -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/data/Final-Frontier.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/data/Final-Frontier.ttf -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/otadrive/ESP32-OTAdrive-Examples/HEAD/09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Tools/Create_Smooth_Font/Create_font/FontFiles/Final-Frontier28.vlw -------------------------------------------------------------------------------- /08-GSM Modem OTA/Arduino PIO/gsm_modem_ota/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "system_error": "cpp", 4 | "regex": "cpp", 5 | "*.tpp": "cpp", 6 | "array": "cpp", 7 | "string_view": "cpp", 8 | "initializer_list": "cpp", 9 | "utility": "cpp" 10 | } 11 | } -------------------------------------------------------------------------------- /06-ProgressBar OTA/README.md: -------------------------------------------------------------------------------- 1 | # OTA/FOTA Progressbar on TTGO/LILYGO 2 | This example shows how to add progressbar to the ESP32 LILYGO board. 3 | ![ESP32 Working OTA Progress](img/ex02-esp32-SimpleConfig-img2.png) 4 | ## Final result 5 | Here is final result of the example. 6 | ![ESP32 Working OTA Progress](img/ex02-esp32-SimpleConfig-img1.gif) -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "system_error": "cpp", 4 | "regex": "cpp", 5 | "*.tpp": "cpp", 6 | "array": "cpp", 7 | "string_view": "cpp", 8 | "initializer_list": "cpp", 9 | "utility": "cpp" 10 | } 11 | } -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Fonts/Font16.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f16 96 4 | #define chr_hgt_f16 16 5 | #define baseline_f16 13 6 | #define data_size_f16 8 7 | #define firstchr_f16 32 8 | 9 | extern const unsigned char widtbl_f16[96]; 10 | extern const unsigned char* const chrtbl_f16[96]; 11 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Fonts/Font16.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f16 96 4 | #define chr_hgt_f16 16 5 | #define baseline_f16 13 6 | #define data_size_f16 8 7 | #define firstchr_f16 32 8 | 9 | extern const unsigned char widtbl_f16[96]; 10 | extern const unsigned char* const chrtbl_f16[96]; 11 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Fonts/Font32rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f32 96 4 | #define chr_hgt_f32 26 5 | #define baseline_f32 19 6 | #define data_size_f32 8 7 | #define firstchr_f32 32 8 | 9 | extern const unsigned char widtbl_f32[96]; 10 | extern const unsigned char* const chrtbl_f32[96]; 11 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Fonts/Font64rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f64 96 4 | #define chr_hgt_f64 48 5 | #define baseline_f64 36 6 | #define data_size_f64 8 7 | #define firstchr_f64 32 8 | 9 | extern const unsigned char widtbl_f64[96]; 10 | extern const unsigned char* const chrtbl_f64[96]; 11 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Fonts/Font72rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f72 96 4 | #define chr_hgt_f72 75 5 | #define baseline_f72 73 6 | #define data_size_f72 8 7 | #define firstchr_f72 32 8 | 9 | extern const unsigned char widtbl_f72[96]; 10 | extern const unsigned char* const chrtbl_f72[96]; 11 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Fonts/Font7srle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f7s 96 4 | #define chr_hgt_f7s 48 5 | #define baseline_f7s 47 6 | #define data_size_f7s 8 7 | #define firstchr_f7s 32 8 | 9 | extern const unsigned char widtbl_f7s[96]; 10 | extern const unsigned char* const chrtbl_f7s[96]; 11 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Fonts/Font32rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f32 96 4 | #define chr_hgt_f32 26 5 | #define baseline_f32 19 6 | #define data_size_f32 8 7 | #define firstchr_f32 32 8 | 9 | extern const unsigned char widtbl_f32[96]; 10 | extern const unsigned char* const chrtbl_f32[96]; 11 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Fonts/Font64rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f64 96 4 | #define chr_hgt_f64 48 5 | #define baseline_f64 36 6 | #define data_size_f64 8 7 | #define firstchr_f64 32 8 | 9 | extern const unsigned char widtbl_f64[96]; 10 | extern const unsigned char* const chrtbl_f64[96]; 11 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Fonts/Font72rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f72 96 4 | #define chr_hgt_f72 75 5 | #define baseline_f72 73 6 | #define data_size_f72 8 7 | #define firstchr_f72 32 8 | 9 | extern const unsigned char widtbl_f72[96]; 10 | extern const unsigned char* const chrtbl_f72[96]; 11 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Fonts/Font7srle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f7s 96 4 | #define chr_hgt_f7s 48 5 | #define baseline_f7s 47 6 | #define data_size_f7s 8 7 | #define firstchr_f7s 32 8 | 9 | extern const unsigned char widtbl_f7s[96]; 10 | extern const unsigned char* const chrtbl_f7s[96]; 11 | -------------------------------------------------------------------------------- /07-SSL/Arduino PIO/ssl/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Fonts/Font16.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f16 96 4 | #define chr_hgt_f16 16 5 | #define baseline_f16 13 6 | #define data_size_f16 8 7 | #define firstchr_f16 32 8 | 9 | extern const unsigned char widtbl_f16[96]; 10 | extern const unsigned char* const chrtbl_f16[96]; 11 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Fonts/Font72x53rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f72 96 4 | #define chr_hgt_f72 75 5 | #define baseline_f72 73 6 | #define data_size_f72 8 7 | #define firstchr_f72 32 8 | 9 | extern const unsigned char widtbl_f72[96]; 10 | extern const unsigned char* const chrtbl_f72[96]; 11 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Fonts/Font72x53rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f72 96 4 | #define chr_hgt_f72 75 5 | #define baseline_f72 73 6 | #define data_size_f72 8 7 | #define firstchr_f72 32 8 | 9 | extern const unsigned char widtbl_f72[96]; 10 | extern const unsigned char* const chrtbl_f72[96]; 11 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Fonts/Font32rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f32 96 4 | #define chr_hgt_f32 26 5 | #define baseline_f32 19 6 | #define data_size_f32 8 7 | #define firstchr_f32 32 8 | 9 | extern const unsigned char widtbl_f32[96]; 10 | extern const unsigned char* const chrtbl_f32[96]; 11 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Fonts/Font64rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f64 96 4 | #define chr_hgt_f64 48 5 | #define baseline_f64 36 6 | #define data_size_f64 8 7 | #define firstchr_f64 32 8 | 9 | extern const unsigned char widtbl_f64[96]; 10 | extern const unsigned char* const chrtbl_f64[96]; 11 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Fonts/Font72rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f72 96 4 | #define chr_hgt_f72 75 5 | #define baseline_f72 73 6 | #define data_size_f72 8 7 | #define firstchr_f72 32 8 | 9 | extern const unsigned char widtbl_f72[96]; 10 | extern const unsigned char* const chrtbl_f72[96]; 11 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Fonts/Font7srle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f7s 96 4 | #define chr_hgt_f7s 48 5 | #define baseline_f7s 47 6 | #define data_size_f7s 8 7 | #define firstchr_f7s 32 8 | 9 | extern const unsigned char widtbl_f7s[96]; 10 | extern const unsigned char* const chrtbl_f7s[96]; 11 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Fonts/Font72x53rle.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define nr_chrs_f72 96 4 | #define chr_hgt_f72 75 5 | #define baseline_f72 73 6 | #define data_size_f72 8 7 | #define firstchr_f72 32 8 | 9 | extern const unsigned char widtbl_f72[96]; 10 | extern const unsigned char* const chrtbl_f72[96]; 11 | -------------------------------------------------------------------------------- /01-Simple_FOTA/Arduino PIO/simple_fota/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /03-JSON Config/Arduino PIO/json_config/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /02-Simple_Config/Arduino PIO/simple_config/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /08-GSM Modem OTA/Arduino PIO/gsm_modem_ota/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /04-Simple Resources/Arduino PIO/simple_resource/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "platformio.platformio-ide" 6 | ], 7 | "unwantedRecommendations": [ 8 | "ms-vscode.cpptools-extension-pack" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # For more information about build system see 2 | # https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html 3 | # The following five lines of boilerplate have to be in your project's 4 | # CMakeLists in this exact order for cmake to work correctly 5 | cmake_minimum_required(VERSION 3.16) 6 | 7 | include($ENV{IDF_PATH}/tools/cmake/project.cmake) 8 | project(simple_fota) 9 | -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # For more information about build system see 2 | # https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html 3 | # The following five lines of boilerplate have to be in your project's 4 | # CMakeLists in this exact order for cmake to work correctly 5 | cmake_minimum_required(VERSION 3.16) 6 | 7 | include($ENV{IDF_PATH}/tools/cmake/project.cmake) 8 | project(simple_config) 9 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/README.txt: -------------------------------------------------------------------------------- 1 | This is a stand-alone library that contains both graphics functions 2 | and the TFT chip driver library. It supports the ESP8266, ESP32, 3 | STM32 and RP2040 processors with performance optimised code. Other 4 | Arduino IDE compatible boards are also supported but the library 5 | then uses generic functions which will be slower. The library uses 6 | 32 bit variables extensively so this will affect performance on 8 7 | and 16 bit processors. 8 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/library.properties: -------------------------------------------------------------------------------- 1 | name=TFT_eSPI 2 | version=2.5.2 3 | author=Bodmer 4 | maintainer=Bodmer 5 | sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32 6 | paragraph=Supports TFT displays using drivers (ILI9341 etc) that operate with hardware SPI or 8/16 bit parallel. 7 | category=Display 8 | url=https://github.com/Bodmer/TFT_eSPI 9 | architectures=* 10 | includes=TFT_eSPI.h 11 | 12 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/README.txt: -------------------------------------------------------------------------------- 1 | This is a stand-alone library that contains both graphics functions 2 | and the TFT chip driver library. It supports the ESP8266, ESP32, 3 | STM32 and RP2040 processors with performance optimised code. Other 4 | Arduino IDE compatible boards are also supported but the library 5 | then uses generic functions which will be slower. The library uses 6 | 32 bit variables extensively so this will affect performance on 8 7 | and 16 bit processors. 8 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/library.properties: -------------------------------------------------------------------------------- 1 | name=TFT_eSPI 2 | version=2.5.2 3 | author=Bodmer 4 | maintainer=Bodmer 5 | sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32 6 | paragraph=Supports TFT displays using drivers (ILI9341 etc) that operate with hardware SPI or 8/16 bit parallel. 7 | category=Display 8 | url=https://github.com/Bodmer/TFT_eSPI 9 | architectures=* 10 | includes=TFT_eSPI.h 11 | 12 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/README.txt: -------------------------------------------------------------------------------- 1 | This is a stand-alone library that contains both graphics functions 2 | and the TFT chip driver library. It supports the ESP8266, ESP32, 3 | STM32 and RP2040 processors with performance optimised code. Other 4 | Arduino IDE compatible boards are also supported but the library 5 | then uses generic functions which will be slower. The library uses 6 | 32 bit variables extensively so this will affect performance on 8 7 | and 16 bit processors. 8 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/library.properties: -------------------------------------------------------------------------------- 1 | name=TFT_eSPI 2 | version=2.5.2 3 | author=Bodmer 4 | maintainer=Bodmer 5 | sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32 6 | paragraph=Supports TFT displays using drivers (ILI9341 etc) that operate with hardware SPI or 8/16 bit parallel. 7 | category=Display 8 | url=https://github.com/Bodmer/TFT_eSPI 9 | architectures=* 10 | includes=TFT_eSPI.h 11 | 12 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/README.md: -------------------------------------------------------------------------------- 1 | # _Sample project_ 2 | 3 | 4 | ## Troubleshooting 5 | 6 | ### Check the partition 7 | If you see the `Passive OTA partition not found` message during download the new firmware, Go to SDK configuration editor and change the partition like this. 8 | ![ESP IDF OTA Partition](img/idf-ota-partition.JPG) 9 | 10 | ### Passive OTA partition not found 11 | Make sure you have enough flash size, you should select at least 4MB flash size for normal OTA. 12 | ![ESP IDF Flash size](img/idf-flashsize.JPG) 13 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/README.md: -------------------------------------------------------------------------------- 1 | # Advanced HTML Server ON ESP32 2 | ![sadasd](img/TTGO-1.jpg) 3 | In this example we are trying to implement an advanced HTML server on our TTGO/LILYGO board to control two lamps (Red & Green). 4 | 5 | ![sadasd](img/HTMLserver1.JPG) 6 | 7 | ## Create your resource 8 | You have to upload the files in the `HTML` folder as a resource in your project. The HTML file and images will download and save to SPIFFS (user area), after first time the MCU starts. 9 | ![sadasd](img/htmlupld1.jpg) 10 | ![sadasd](img/htmlupld2.jpg) 11 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/test/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for PlatformIO Unit Testing and project tests. 3 | 4 | Unit Testing is a software testing method by which individual units of 5 | source code, sets of one or more MCU program modules together with associated 6 | control data, usage procedures, and operating procedures, are tested to 7 | determine whether they are fit for use. Unit testing finds problems early 8 | in the development cycle. 9 | 10 | More information about PlatformIO Unit Testing: 11 | - https://docs.platformio.org/page/plus/unit-testing.html 12 | -------------------------------------------------------------------------------- /04-Simple Resources/Arduino PIO/simple_resource/HTML/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 |
14 | 15 | 16 |
17 | 18 |
19 | 20 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/HTML/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | 13 |
14 | 15 | 16 |
17 | 18 |
19 | 20 | 21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /07-SSL/Arduino PIO/ssl/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:wemos_d1_mini32] 12 | platform = espressif32 13 | board = wemos_d1_mini32 14 | framework = arduino 15 | lib_deps = otadrive/OTAdrive 16 | build_flags = 17 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG ; Enable all logs output 18 | -------------------------------------------------------------------------------- /02-Simple_Config/Arduino PIO/simple_config/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:wemos_d1_mini32] 12 | platform = espressif32 13 | board = wemos_d1_mini32 14 | framework = arduino 15 | lib_deps = otadrive/OTAdrive 16 | build_flags = 17 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG ; Enable all logs output -------------------------------------------------------------------------------- /04-Simple Resources/Arduino PIO/simple_resource/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:wemos_d1_mini32] 12 | platform = espressif32 13 | board = wemos_d1_mini32 14 | framework = arduino 15 | lib_deps = otadrive/OTAdrive 16 | build_flags = 17 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG ; Enable all logs output -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/ST7789_2_Init.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that initialises the ST7789 driver 3 | 4 | // Configure ST7789 display 5 | 6 | { 7 | static const uint8_t PROGMEM 8 | st7789[] = { 9 | 8, 10 | TFT_SLPOUT, TFT_INIT_DELAY, 255, 11 | TFT_COLMOD, 1+TFT_INIT_DELAY, 0x55, 10, 12 | TFT_MADCTL, 1, 0x00, 13 | TFT_CASET, 4, 0x00, 0x00, 0x00, 0xF0, 14 | TFT_PASET, 4, 0x00, 0x00, 0x00, 0xF0, 15 | TFT_INVON, TFT_INIT_DELAY, 10, 16 | TFT_NORON, TFT_INIT_DELAY, 10, 17 | TFT_DISPON, TFT_INIT_DELAY, 255 18 | }; 19 | 20 | commandList(st7789); 21 | } 22 | // End of ST7789 display configuration -------------------------------------------------------------------------------- /03-JSON Config/Arduino PIO/json_config/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:wemos_d1_mini32] 12 | platform = espressif32 13 | board = wemos_d1_mini32 14 | framework = arduino 15 | lib_deps = 16 | otadrive/OTAdrive 17 | bblanchon/ArduinoJson 18 | build_flags = 19 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG 20 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/ST7789_2_Init.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that initialises the ST7789 driver 3 | 4 | // Configure ST7789 display 5 | 6 | { 7 | static const uint8_t PROGMEM 8 | st7789[] = { 9 | 8, 10 | TFT_SLPOUT, TFT_INIT_DELAY, 255, 11 | TFT_COLMOD, 1+TFT_INIT_DELAY, 0x55, 10, 12 | TFT_MADCTL, 1, 0x00, 13 | TFT_CASET, 4, 0x00, 0x00, 0x00, 0xF0, 14 | TFT_PASET, 4, 0x00, 0x00, 0x00, 0xF0, 15 | TFT_INVON, TFT_INIT_DELAY, 10, 16 | TFT_NORON, TFT_INIT_DELAY, 10, 17 | TFT_DISPON, TFT_INIT_DELAY, 255 18 | }; 19 | 20 | commandList(st7789); 21 | } 22 | // End of ST7789 display configuration -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Defines.h: -------------------------------------------------------------------------------- 1 | #ifndef TFT_WIDTH 2 | #define TFT_WIDTH 128 3 | #endif 4 | #ifndef TFT_HEIGHT 5 | #define TFT_HEIGHT 128 6 | #endif 7 | 8 | // Delay between some initialisation commands 9 | #define TFT_INIT_DELAY 0x80 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST TFT_NOP 14 | #define TFT_CASET 0x15 // SETCOLUMN 15 | #define TFT_PASET 0x75 // SETROW 16 | #define TFT_RAMWR 0x5C // WRITERAM 17 | #define TFT_RAMRD 0x5D // READRAM 18 | #define TFT_IDXRD TFT_NOP 19 | #define TFT_INVOFF 0xA6 // NORMALDISPLAY 20 | #define TFT_INVON 0xA7 // INVERTDISPLAY 21 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Defines.h: -------------------------------------------------------------------------------- 1 | #ifndef TFT_WIDTH 2 | #define TFT_WIDTH 128 3 | #endif 4 | #ifndef TFT_HEIGHT 5 | #define TFT_HEIGHT 128 6 | #endif 7 | 8 | // Delay between some initialisation commands 9 | #define TFT_INIT_DELAY 0x80 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST TFT_NOP 14 | #define TFT_CASET 0x15 // SETCOLUMN 15 | #define TFT_PASET 0x75 // SETROW 16 | #define TFT_RAMWR 0x5C // WRITERAM 17 | #define TFT_RAMRD 0x5D // READRAM 18 | #define TFT_IDXRD TFT_NOP 19 | #define TFT_INVOFF 0xA6 // NORMALDISPLAY 20 | #define TFT_INVON 0xA7 // INVERTDISPLAY 21 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/ST7789_2_Init.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that initialises the ST7789 driver 3 | 4 | // Configure ST7789 display 5 | 6 | { 7 | static const uint8_t PROGMEM 8 | st7789[] = { 9 | 8, 10 | TFT_SLPOUT, TFT_INIT_DELAY, 255, 11 | TFT_COLMOD, 1+TFT_INIT_DELAY, 0x55, 10, 12 | TFT_MADCTL, 1, 0x00, 13 | TFT_CASET, 4, 0x00, 0x00, 0x00, 0xF0, 14 | TFT_PASET, 4, 0x00, 0x00, 0x00, 0xF0, 15 | TFT_INVON, TFT_INIT_DELAY, 10, 16 | TFT_NORON, TFT_INIT_DELAY, 10, 17 | TFT_DISPON, TFT_INIT_DELAY, 255 18 | }; 19 | 20 | commandList(st7789); 21 | } 22 | // End of ST7789 display configuration -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Defines.h: -------------------------------------------------------------------------------- 1 | #ifndef TFT_WIDTH 2 | #define TFT_WIDTH 128 3 | #endif 4 | #ifndef TFT_HEIGHT 5 | #define TFT_HEIGHT 128 6 | #endif 7 | 8 | // Delay between some initialisation commands 9 | #define TFT_INIT_DELAY 0x80 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST TFT_NOP 14 | #define TFT_CASET 0x15 // SETCOLUMN 15 | #define TFT_PASET 0x75 // SETROW 16 | #define TFT_RAMWR 0x5C // WRITERAM 17 | #define TFT_RAMRD 0x5D // READRAM 18 | #define TFT_IDXRD TFT_NOP 19 | #define TFT_INVOFF 0xA6 // NORMALDISPLAY 20 | #define TFT_INVON 0xA7 // INVERTDISPLAY 21 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/EPD_Defines.h: -------------------------------------------------------------------------------- 1 | // Null set for ePaper 2 | #define TFT_WIDTH 1000 3 | #define TFT_HEIGHT 1000 4 | 5 | #define TFT_INIT_DELAY 0 6 | 7 | #define TFT_NOP 0x00 8 | #define TFT_SWRST 0x00 9 | 10 | #define TFT_CASET 0x00 11 | #define TFT_PASET 0x00 12 | #define TFT_RAMWR 0x00 13 | 14 | #define TFT_RAMRD 0x00 15 | #define TFT_IDXRD 0x00 16 | 17 | #define TFT_MADCTL 0x00 18 | #define TFT_MAD_MY 0x00 19 | #define TFT_MAD_MX 0x00 20 | #define TFT_MAD_MV 0x00 21 | #define TFT_MAD_ML 0x00 22 | #define TFT_MAD_BGR 0x00 23 | #define TFT_MAD_MH 0x00 24 | #define TFT_MAD_RGB 0x00 25 | 26 | #define TFT_INVOFF 0x00 27 | #define TFT_INVON 0x00 28 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/EPD_Defines.h: -------------------------------------------------------------------------------- 1 | // Null set for ePaper 2 | #define TFT_WIDTH 1000 3 | #define TFT_HEIGHT 1000 4 | 5 | #define TFT_INIT_DELAY 0 6 | 7 | #define TFT_NOP 0x00 8 | #define TFT_SWRST 0x00 9 | 10 | #define TFT_CASET 0x00 11 | #define TFT_PASET 0x00 12 | #define TFT_RAMWR 0x00 13 | 14 | #define TFT_RAMRD 0x00 15 | #define TFT_IDXRD 0x00 16 | 17 | #define TFT_MADCTL 0x00 18 | #define TFT_MAD_MY 0x00 19 | #define TFT_MAD_MX 0x00 20 | #define TFT_MAD_MV 0x00 21 | #define TFT_MAD_ML 0x00 22 | #define TFT_MAD_BGR 0x00 23 | #define TFT_MAD_MH 0x00 24 | #define TFT_MAD_RGB 0x00 25 | 26 | #define TFT_INVOFF 0x00 27 | #define TFT_INVON 0x00 28 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/EPD_Defines.h: -------------------------------------------------------------------------------- 1 | // Null set for ePaper 2 | #define TFT_WIDTH 1000 3 | #define TFT_HEIGHT 1000 4 | 5 | #define TFT_INIT_DELAY 0 6 | 7 | #define TFT_NOP 0x00 8 | #define TFT_SWRST 0x00 9 | 10 | #define TFT_CASET 0x00 11 | #define TFT_PASET 0x00 12 | #define TFT_RAMWR 0x00 13 | 14 | #define TFT_RAMRD 0x00 15 | #define TFT_IDXRD 0x00 16 | 17 | #define TFT_MADCTL 0x00 18 | #define TFT_MAD_MY 0x00 19 | #define TFT_MAD_MX 0x00 20 | #define TFT_MAD_MV 0x00 21 | #define TFT_MAD_ML 0x00 22 | #define TFT_MAD_BGR 0x00 23 | #define TFT_MAD_MH 0x00 24 | #define TFT_MAD_RGB 0x00 25 | 26 | #define TFT_INVOFF 0x00 27 | #define TFT_INVON 0x00 28 | -------------------------------------------------------------------------------- /08-GSM Modem OTA/Arduino PIO/gsm_modem_ota/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:esp32] 12 | platform = espressif32 13 | board = esp32doit-devkit-v1 14 | framework = arduino 15 | lib_deps = 16 | otadrive/OTAdrive 17 | vshymanskyy/TinyGSM 18 | 19 | build_flags = 20 | -D TINY_GSM_MODEM_SIM800 21 | -D TINY_GSM_RX_BUFFER=512 22 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter 4 | ; Upload options: custom upload port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; Advanced options: extra scripting 7 | ; 8 | ; Please visit documentation for the other options and examples 9 | ; https://docs.platformio.org/page/projectconf.html 10 | 11 | [env:esp32] 12 | platform = espressif32 13 | board = esp32doit-devkit-v1 14 | framework = arduino 15 | lib_deps = 16 | otadrive/OTAdrive 17 | vshymanskyy/TinyGSM 18 | 19 | build_flags = 20 | -D TINY_GSM_MODEM_SIM800 21 | -D TINY_GSM_RX_BUFFER=512 22 | -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup204_ESP32_TouchDown.h: -------------------------------------------------------------------------------- 1 | // User Setup for the ESP32 TouchDown V1.0 and V1.1 2 | // ILI9488 using 4-wire SPI and using an FT6206 touch controller 3 | 4 | #define USER_SETUP_ID 204 5 | 6 | #define ILI9488_DRIVER 7 | 8 | #define TFT_BL 32 9 | #define TFT_BACKLIGHT_ON HIGH 10 | 11 | #define TFT_MISO 19 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | #define TFT_CS 15 15 | #define TFT_DC 2 16 | #define TFT_RST 4 17 | 18 | #define TOUCH_CS 21 19 | 20 | #define LOAD_GLCD 21 | #define LOAD_FONT2 22 | #define LOAD_FONT4 23 | #define LOAD_FONT6 24 | #define LOAD_FONT7 25 | #define LOAD_FONT8 26 | #define LOAD_GFXFF 27 | 28 | #define SMOOTH_FONT 29 | 30 | #define SPI_FREQUENCY 27000000 31 | #define SPI_READ_FREQUENCY 20000000 32 | #define SPI_TOUCH_FREQUENCY 2500000 -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup204_ESP32_TouchDown.h: -------------------------------------------------------------------------------- 1 | // User Setup for the ESP32 TouchDown V1.0 and V1.1 2 | // ILI9488 using 4-wire SPI and using an FT6206 touch controller 3 | 4 | #define USER_SETUP_ID 204 5 | 6 | #define ILI9488_DRIVER 7 | 8 | #define TFT_BL 32 9 | #define TFT_BACKLIGHT_ON HIGH 10 | 11 | #define TFT_MISO 19 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | #define TFT_CS 15 15 | #define TFT_DC 2 16 | #define TFT_RST 4 17 | 18 | #define TOUCH_CS 21 19 | 20 | #define LOAD_GLCD 21 | #define LOAD_FONT2 22 | #define LOAD_FONT4 23 | #define LOAD_FONT6 24 | #define LOAD_FONT7 25 | #define LOAD_FONT8 26 | #define LOAD_GFXFF 27 | 28 | #define SMOOTH_FONT 29 | 30 | #define SPI_FREQUENCY 27000000 31 | #define SPI_READ_FREQUENCY 20000000 32 | #define SPI_TOUCH_FREQUENCY 2500000 -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup204_ESP32_TouchDown.h: -------------------------------------------------------------------------------- 1 | // User Setup for the ESP32 TouchDown V1.0 and V1.1 2 | // ILI9488 using 4-wire SPI and using an FT6206 touch controller 3 | 4 | #define USER_SETUP_ID 204 5 | 6 | #define ILI9488_DRIVER 7 | 8 | #define TFT_BL 32 9 | #define TFT_BACKLIGHT_ON HIGH 10 | 11 | #define TFT_MISO 19 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | #define TFT_CS 15 15 | #define TFT_DC 2 16 | #define TFT_RST 4 17 | 18 | #define TOUCH_CS 21 19 | 20 | #define LOAD_GLCD 21 | #define LOAD_FONT2 22 | #define LOAD_FONT4 23 | #define LOAD_FONT6 24 | #define LOAD_FONT7 25 | #define LOAD_FONT8 26 | #define LOAD_GFXFF 27 | 28 | #define SMOOTH_FONT 29 | 30 | #define SPI_FREQUENCY 27000000 31 | #define SPI_READ_FREQUENCY 20000000 32 | #define SPI_TOUCH_FREQUENCY 2500000 -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | 54 | #idf files 55 | build/ 56 | dist/ 57 | dependencies.lock 58 | sdkconfig 59 | docs/build 60 | docs/latex 61 | managed_components/ 62 | *~ 63 | 64 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup71_ESP32_S2_ST7789.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S2 with ST7789 display 2 | // Note SPI DMA with ESP32 S2 is not currently supported 3 | #define USER_SETUP_ID 71 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER // Configure all registers 7 | 8 | 9 | #define TFT_CS 34 // 10 or 34 10 | #define TFT_MOSI 35 // 11 or 35 11 | #define TFT_SCLK 37 // 12 or 36 12 | #define TFT_MISO 36 // 13 or 37 13 | 14 | #define TFT_DC 33 15 | #define TFT_RST -1 16 | 17 | #define LOAD_GLCD 18 | #define LOAD_FONT2 19 | #define LOAD_FONT4 20 | #define LOAD_FONT6 21 | #define LOAD_FONT7 22 | #define LOAD_FONT8 23 | #define LOAD_GFXFF 24 | 25 | #define SMOOTH_FONT 26 | 27 | #define SPI_FREQUENCY 27000000 28 | 29 | #define SPI_TOUCH_FREQUENCY 2500000 30 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup71_ESP32_S2_ST7789.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S2 with ST7789 display 2 | // Note SPI DMA with ESP32 S2 is not currently supported 3 | #define USER_SETUP_ID 71 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER // Configure all registers 7 | 8 | 9 | #define TFT_CS 34 // 10 or 34 10 | #define TFT_MOSI 35 // 11 or 35 11 | #define TFT_SCLK 37 // 12 or 36 12 | #define TFT_MISO 36 // 13 or 37 13 | 14 | #define TFT_DC 33 15 | #define TFT_RST -1 16 | 17 | #define LOAD_GLCD 18 | #define LOAD_FONT2 19 | #define LOAD_FONT4 20 | #define LOAD_FONT6 21 | #define LOAD_FONT7 22 | #define LOAD_FONT8 23 | #define LOAD_GFXFF 24 | 25 | #define SMOOTH_FONT 26 | 27 | #define SPI_FREQUENCY 27000000 28 | 29 | #define SPI_TOUCH_FREQUENCY 2500000 30 | -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | 54 | #idf files 55 | build/ 56 | dist/ 57 | dependencies.lock 58 | sdkconfig 59 | docs/build 60 | docs/latex 61 | managed_components/ 62 | *~ 63 | 64 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup71_ESP32_S2_ST7789.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S2 with ST7789 display 2 | // Note SPI DMA with ESP32 S2 is not currently supported 3 | #define USER_SETUP_ID 71 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER // Configure all registers 7 | 8 | 9 | #define TFT_CS 34 // 10 or 34 10 | #define TFT_MOSI 35 // 11 or 35 11 | #define TFT_SCLK 37 // 12 or 36 12 | #define TFT_MISO 36 // 13 or 37 13 | 14 | #define TFT_DC 33 15 | #define TFT_RST -1 16 | 17 | #define LOAD_GLCD 18 | #define LOAD_FONT2 19 | #define LOAD_FONT4 20 | #define LOAD_FONT6 21 | #define LOAD_FONT7 22 | #define LOAD_FONT8 23 | #define LOAD_GFXFF 24 | 25 | #define SMOOTH_FONT 26 | 27 | #define SPI_FREQUENCY 27000000 28 | 29 | #define SPI_TOUCH_FREQUENCY 2500000 30 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup205_ESP32_TouchDown_S3.h: -------------------------------------------------------------------------------- 1 | // User Setup for the ESP32 TouchDown S3 V1.1 2 | // ILI9488 using 8-bit Parallel and using an FT6206 touch controller 3 | 4 | #define USER_SETUP_ID 205 5 | 6 | #define ESP32_PARALLEL 7 | 8 | #define ILI9488_DRIVER 9 | 10 | #define TFT_DC 5 11 | #define TFT_RST 46 12 | 13 | #define TFT_WR 7 14 | #define TFT_RD 6 15 | 16 | #define TFT_D0 21 17 | #define TFT_D1 14 18 | #define TFT_D2 13 19 | #define TFT_D3 12 20 | #define TFT_D4 11 21 | #define TFT_D5 10 22 | #define TFT_D6 9 23 | #define TFT_D7 8 24 | 25 | #define TFT_BL 48 26 | #define TFT_BACKLIGHT_ON HIGH 27 | 28 | #define LOAD_GLCD 29 | #define LOAD_FONT2 30 | #define LOAD_FONT4 31 | #define LOAD_FONT6 32 | #define LOAD_FONT7 33 | #define LOAD_FONT8 34 | #define LOAD_GFXFF 35 | 36 | #define SMOOTH_FONT -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup205_ESP32_TouchDown_S3.h: -------------------------------------------------------------------------------- 1 | // User Setup for the ESP32 TouchDown S3 V1.1 2 | // ILI9488 using 8-bit Parallel and using an FT6206 touch controller 3 | 4 | #define USER_SETUP_ID 205 5 | 6 | #define ESP32_PARALLEL 7 | 8 | #define ILI9488_DRIVER 9 | 10 | #define TFT_DC 5 11 | #define TFT_RST 46 12 | 13 | #define TFT_WR 7 14 | #define TFT_RD 6 15 | 16 | #define TFT_D0 21 17 | #define TFT_D1 14 18 | #define TFT_D2 13 19 | #define TFT_D3 12 20 | #define TFT_D4 11 21 | #define TFT_D5 10 22 | #define TFT_D6 9 23 | #define TFT_D7 8 24 | 25 | #define TFT_BL 48 26 | #define TFT_BACKLIGHT_ON HIGH 27 | 28 | #define LOAD_GLCD 29 | #define LOAD_FONT2 30 | #define LOAD_FONT4 31 | #define LOAD_FONT6 32 | #define LOAD_FONT7 33 | #define LOAD_FONT8 34 | #define LOAD_GFXFF 35 | 36 | #define SMOOTH_FONT -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup205_ESP32_TouchDown_S3.h: -------------------------------------------------------------------------------- 1 | // User Setup for the ESP32 TouchDown S3 V1.1 2 | // ILI9488 using 8-bit Parallel and using an FT6206 touch controller 3 | 4 | #define USER_SETUP_ID 205 5 | 6 | #define ESP32_PARALLEL 7 | 8 | #define ILI9488_DRIVER 9 | 10 | #define TFT_DC 5 11 | #define TFT_RST 46 12 | 13 | #define TFT_WR 7 14 | #define TFT_RD 6 15 | 16 | #define TFT_D0 21 17 | #define TFT_D1 14 18 | #define TFT_D2 13 19 | #define TFT_D3 12 20 | #define TFT_D4 11 21 | #define TFT_D5 10 22 | #define TFT_D6 9 23 | #define TFT_D7 8 24 | 25 | #define TFT_BL 48 26 | #define TFT_BACKLIGHT_ON HIGH 27 | 28 | #define LOAD_GLCD 29 | #define LOAD_FONT2 30 | #define LOAD_FONT4 31 | #define LOAD_FONT6 32 | #define LOAD_FONT7 33 | #define LOAD_FONT8 34 | #define LOAD_GFXFF 35 | 36 | #define SMOOTH_FONT -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/S6D02A1_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the S6D02A1 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(TFT_MAD_BGR); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | } 29 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/S6D02A1_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the S6D02A1 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(TFT_MAD_BGR); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | } 29 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/S6D02A1_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the S6D02A1 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(TFT_MAD_BGR); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | } 29 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/SSD1963_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the SSD1963 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(0x21 | TFT_MAD_COLOR_ORDER); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(0x00 | TFT_MAD_COLOR_ORDER); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(0x22 | TFT_MAD_COLOR_ORDER); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(0x03 | TFT_MAD_COLOR_ORDER); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/SSD1963_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the SSD1963 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(0x21 | TFT_MAD_COLOR_ORDER); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(0x00 | TFT_MAD_COLOR_ORDER); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(0x22 | TFT_MAD_COLOR_ORDER); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(0x03 | TFT_MAD_COLOR_ORDER); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/SSD1963_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the SSD1963 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(0x21 | TFT_MAD_COLOR_ORDER); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(0x00 | TFT_MAD_COLOR_ORDER); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(0x22 | TFT_MAD_COLOR_ORDER); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(0x03 | TFT_MAD_COLOR_ORDER); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/R61581_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the R61581 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_BGR | TFT_MAD_MX); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_BGR | TFT_MAD_GS); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MV | TFT_MAD_BGR | TFT_MAD_MX | TFT_MAD_GS); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/ILI9481_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the ILI9481 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_BGR | TFT_MAD_SS); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_BGR | TFT_MAD_GS); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MV | TFT_MAD_BGR | TFT_MAD_SS | TFT_MAD_GS); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/ILI9488_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the ILI9488 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_MX | TFT_MAD_BGR); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_MY | TFT_MAD_BGR); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_MV | TFT_MAD_BGR); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/R61581_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the R61581 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_BGR | TFT_MAD_MX); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_BGR | TFT_MAD_GS); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MV | TFT_MAD_BGR | TFT_MAD_MX | TFT_MAD_GS); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/ILI9481_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the ILI9481 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_BGR | TFT_MAD_SS); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_BGR | TFT_MAD_GS); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MV | TFT_MAD_BGR | TFT_MAD_SS | TFT_MAD_GS); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/ILI9488_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the ILI9488 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_MX | TFT_MAD_BGR); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_MY | TFT_MAD_BGR); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_MV | TFT_MAD_BGR); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/ILI9481_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the ILI9481 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_BGR | TFT_MAD_SS); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_BGR | TFT_MAD_GS); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MV | TFT_MAD_BGR | TFT_MAD_SS | TFT_MAD_GS); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/ILI9488_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the ILI9488 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_MX | TFT_MAD_BGR); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_MY | TFT_MAD_BGR); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_MV | TFT_MAD_BGR); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/R61581_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the R61581 driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_BGR | TFT_MAD_MX); 8 | _width = TFT_WIDTH; 9 | _height = TFT_HEIGHT; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 13 | _width = TFT_HEIGHT; 14 | _height = TFT_WIDTH; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_BGR | TFT_MAD_GS); 18 | _width = TFT_WIDTH; 19 | _height = TFT_HEIGHT; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MV | TFT_MAD_BGR | TFT_MAD_MX | TFT_MAD_GS); 23 | _width = TFT_HEIGHT; 24 | _height = TFT_WIDTH; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "C_Cpp.intelliSenseEngine": "default", 3 | "idf.adapterTargetName": "esp32", 4 | "idf.portWin": "COM4", 5 | "idf.flashType": "UART", 6 | "files.associations": { 7 | "esp_event.h": "c", 8 | "string.h": "c", 9 | "charconv": "c", 10 | "error.h": "c", 11 | "esp_err.h": "c", 12 | "freertos.h": "c", 13 | "common.h": "c", 14 | "privates.h": "c", 15 | "stdlib.h": "c", 16 | "task.h": "c", 17 | "esp_http_client.h": "c", 18 | "otadrive_esp.h": "c", 19 | "esp_mac.h": "c", 20 | "chrono": "c", 21 | "otd_privates.h": "c", 22 | "otd_common.h": "c", 23 | "bitset": "c", 24 | "string_view": "c", 25 | "regex": "c", 26 | "esp_rom_spiflash.h": "c", 27 | "esp_rom_spiflash_defs.h": "c", 28 | "esp_partition.h": "c", 29 | "array": "c", 30 | "format": "c", 31 | "initializer_list": "c", 32 | "span": "c" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "C_Cpp.intelliSenseEngine": "default", 3 | "idf.adapterTargetName": "esp32", 4 | "idf.portWin": "COM4", 5 | "idf.flashType": "UART", 6 | "files.associations": { 7 | "esp_event.h": "c", 8 | "string.h": "c", 9 | "charconv": "c", 10 | "error.h": "c", 11 | "esp_err.h": "c", 12 | "freertos.h": "c", 13 | "common.h": "c", 14 | "privates.h": "c", 15 | "stdlib.h": "c", 16 | "task.h": "c", 17 | "esp_http_client.h": "c", 18 | "otadrive_esp.h": "c", 19 | "esp_mac.h": "c", 20 | "chrono": "c", 21 | "otd_privates.h": "c", 22 | "otd_common.h": "c", 23 | "bitset": "c", 24 | "string_view": "c", 25 | "regex": "c", 26 | "esp_rom_spiflash.h": "c", 27 | "esp_rom_spiflash_defs.h": "c", 28 | "esp_partition.h": "c", 29 | "array": "c", 30 | "format": "c", 31 | "initializer_list": "c", 32 | "span": "c" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/RM68120_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the RM68120 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_COLOR_ORDER); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(TFT_MAD_MV | TFT_MAD_MX | TFT_MAD_COLOR_ORDER); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup22_TTGO_T4_v1.3.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T4 v1.3 ESP32 board with 2.2" ILI9341 display 2 | #define USER_SETUP_ID 99922 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ILI9341_DRIVER 7 | 8 | #define TFT_BACKLIGHT_ON HIGH 9 | #define TFT_BL 4 10 | 11 | #define TFT_MISO 12 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | 15 | #define TFT_CS 27 16 | #define TFT_DC 32 // pin 26 for TTGO T4 v1.3 17 | #define TFT_RST 5 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | //#define SPI_FREQUENCY 27000000 30 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 31 | 32 | #define USE_HSPI_PORT 33 | 34 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 35 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/RM68120_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the RM68120 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_COLOR_ORDER); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(TFT_MAD_MV | TFT_MAD_MX | TFT_MAD_COLOR_ORDER); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup22_TTGO_T4_v1.3.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T4 v1.3 ESP32 board with 2.2" ILI9341 display 2 | #define USER_SETUP_ID 99922 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ILI9341_DRIVER 7 | 8 | #define TFT_BACKLIGHT_ON HIGH 9 | #define TFT_BL 4 10 | 11 | #define TFT_MISO 12 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | 15 | #define TFT_CS 27 16 | #define TFT_DC 32 // pin 26 for TTGO T4 v1.3 17 | #define TFT_RST 5 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | //#define SPI_FREQUENCY 27000000 30 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 31 | 32 | #define USE_HSPI_PORT 33 | 34 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 35 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/RM68120_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the RM68120 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_COLOR_ORDER); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: 14 | writedata(TFT_MAD_MV | TFT_MAD_MX | TFT_MAD_COLOR_ORDER); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: 19 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: 24 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup22_TTGO_T4_v1.3.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T4 v1.3 ESP32 board with 2.2" ILI9341 display 2 | #define USER_SETUP_ID 99922 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ILI9341_DRIVER 7 | 8 | #define TFT_BACKLIGHT_ON HIGH 9 | #define TFT_BL 4 10 | 11 | #define TFT_MISO 12 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | 15 | #define TFT_CS 27 16 | #define TFT_DC 32 // pin 26 for TTGO T4 v1.3 17 | #define TFT_RST 5 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | //#define SPI_FREQUENCY 27000000 30 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 31 | 32 | #define USE_HSPI_PORT 33 | 34 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 35 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/GC9A01_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the GC9A01 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: // Portrait 9 | writedata(TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: // Landscape (Portrait + 90) 14 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: // Inverter portrait 19 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: // Inverted landscape 24 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | } 29 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/GC9A01_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the GC9A01 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: // Portrait 9 | writedata(TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: // Landscape (Portrait + 90) 14 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: // Inverter portrait 19 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: // Inverted landscape 24 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | } 29 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the SSD1351 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | uint8_t madctl = 0x64; 7 | 8 | switch (rotation) { 9 | case 0: 10 | madctl |= 0x10; 11 | _width = _init_width; 12 | _height = _init_height; 13 | break; 14 | case 1: 15 | madctl |= 0x13; 16 | _width = _init_height; 17 | _height = _init_width; 18 | break; 19 | case 2: 20 | madctl |= 0x02; 21 | _width = _init_width; 22 | _height = _init_height; 23 | break; 24 | case 3: 25 | madctl |= 0x01; 26 | _width = _init_height; 27 | _height = _init_width; 28 | break; 29 | } 30 | 31 | writecommand(0xA0); // SETREMAP 32 | writedata(madctl); 33 | writecommand(0xA1); // STARTLINE 34 | writedata(rotation < 2 ? TFT_HEIGHT : 0); 35 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/GC9A01_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the GC9A01 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: // Portrait 9 | writedata(TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | break; 13 | case 1: // Landscape (Portrait + 90) 14 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 15 | _width = _init_height; 16 | _height = _init_width; 17 | break; 18 | case 2: // Inverter portrait 19 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 20 | _width = _init_width; 21 | _height = _init_height; 22 | break; 23 | case 3: // Inverted landscape 24 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 25 | _width = _init_height; 26 | _height = _init_width; 27 | break; 28 | } 29 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the SSD1351 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | uint8_t madctl = 0x64; 7 | 8 | switch (rotation) { 9 | case 0: 10 | madctl |= 0x10; 11 | _width = _init_width; 12 | _height = _init_height; 13 | break; 14 | case 1: 15 | madctl |= 0x13; 16 | _width = _init_height; 17 | _height = _init_width; 18 | break; 19 | case 2: 20 | madctl |= 0x02; 21 | _width = _init_width; 22 | _height = _init_height; 23 | break; 24 | case 3: 25 | madctl |= 0x01; 26 | _width = _init_height; 27 | _height = _init_width; 28 | break; 29 | } 30 | 31 | writecommand(0xA0); // SETREMAP 32 | writedata(madctl); 33 | writecommand(0xA1); // STARTLINE 34 | writedata(rotation < 2 ? TFT_HEIGHT : 0); 35 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/HX8357D_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the HX8357D driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 8 | _width = _init_width; 9 | _height = _init_height; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 13 | _width = _init_height; 14 | _height = _init_width; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_COLOR_ORDER); 18 | _width = _init_width; 19 | _height = _init_height; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_COLOR_ORDER); 23 | _width = _init_height; 24 | _height = _init_width; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the SSD1351 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | uint8_t madctl = 0x64; 7 | 8 | switch (rotation) { 9 | case 0: 10 | madctl |= 0x10; 11 | _width = _init_width; 12 | _height = _init_height; 13 | break; 14 | case 1: 15 | madctl |= 0x13; 16 | _width = _init_height; 17 | _height = _init_width; 18 | break; 19 | case 2: 20 | madctl |= 0x02; 21 | _width = _init_width; 22 | _height = _init_height; 23 | break; 24 | case 3: 25 | madctl |= 0x01; 26 | _width = _init_height; 27 | _height = _init_width; 28 | break; 29 | } 30 | 31 | writecommand(0xA0); // SETREMAP 32 | writedata(madctl); 33 | writecommand(0xA1); // STARTLINE 34 | writedata(rotation < 2 ? TFT_HEIGHT : 0); 35 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/HX8357D_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the HX8357D driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 8 | _width = _init_width; 9 | _height = _init_height; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 13 | _width = _init_height; 14 | _height = _init_width; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_COLOR_ORDER); 18 | _width = _init_width; 19 | _height = _init_height; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_COLOR_ORDER); 23 | _width = _init_height; 24 | _height = _init_width; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/HX8357D_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the HX8357D driver coordinate frame 2 | 3 | writecommand(TFT_MADCTL); 4 | rotation = m % 4; 5 | switch (rotation) { 6 | case 0: // Portrait 7 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 8 | _width = _init_width; 9 | _height = _init_height; 10 | break; 11 | case 1: // Landscape (Portrait + 90) 12 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_COLOR_ORDER); 13 | _width = _init_height; 14 | _height = _init_width; 15 | break; 16 | case 2: // Inverter portrait 17 | writedata(TFT_MAD_COLOR_ORDER); 18 | _width = _init_width; 19 | _height = _init_height; 20 | break; 21 | case 3: // Inverted landscape 22 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_COLOR_ORDER); 23 | _width = _init_height; 24 | _height = _init_width; 25 | break; 26 | } 27 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # Arduino debug 21 | debug.cfg 22 | debug_custom.json 23 | *.svd 24 | 25 | # ========================= 26 | # Operating System Files 27 | # ========================= 28 | 29 | # OSX 30 | # ========================= 31 | 32 | .DS_Store 33 | .AppleDouble 34 | .LSOverride 35 | 36 | # Thumbnails 37 | ._* 38 | 39 | # Files that might appear in the root of a volume 40 | .DocumentRevisions-V100 41 | .fseventsd 42 | .Spotlight-V100 43 | .TemporaryItems 44 | .Trashes 45 | .VolumeIcon.icns 46 | 47 | # Directories potentially created on remote AFP share 48 | .AppleDB 49 | .AppleDesktop 50 | Network Trash Folder 51 | Temporary Items 52 | .apdisk 53 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TFT_eSPI", 3 | "version": "2.5.2", 4 | "keywords": "Arduino, tft, display, ttgo, LilyPi, WT32-SC01, ePaper, display, Pico, RP2040 Nano Connect, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, ST7796, RM68140, SSD1351, SSD1963, ILI9225, HX8357D, GC9A01, R61581", 5 | "description": "A TFT and ePaper (SPI or parallel interface) graphics library with optimisation for Raspberry Pi Pico, RP2040, ESP8266, ESP32 and STM32 processors", 6 | "repository": 7 | { 8 | "type": "git", 9 | "url": "https://github.com/Bodmer/TFT_eSPI" 10 | }, 11 | "authors": 12 | [ 13 | { 14 | "name": "Bodmer", 15 | "email": "bodmer@anola.net", 16 | "maintainer": true 17 | } 18 | ], 19 | "frameworks": "arduino", 20 | "platforms": "raspberrypi, espressif8266, espressif32, ststm32", 21 | "headers": "TFT_eSPI.h" 22 | } 23 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # Arduino debug 21 | debug.cfg 22 | debug_custom.json 23 | *.svd 24 | 25 | # ========================= 26 | # Operating System Files 27 | # ========================= 28 | 29 | # OSX 30 | # ========================= 31 | 32 | .DS_Store 33 | .AppleDouble 34 | .LSOverride 35 | 36 | # Thumbnails 37 | ._* 38 | 39 | # Files that might appear in the root of a volume 40 | .DocumentRevisions-V100 41 | .fseventsd 42 | .Spotlight-V100 43 | .TemporaryItems 44 | .Trashes 45 | .VolumeIcon.icns 46 | 47 | # Directories potentially created on remote AFP share 48 | .AppleDB 49 | .AppleDesktop 50 | Network Trash Folder 51 | Temporary Items 52 | .apdisk 53 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TFT_eSPI", 3 | "version": "2.5.2", 4 | "keywords": "Arduino, tft, display, ttgo, LilyPi, WT32-SC01, ePaper, display, Pico, RP2040 Nano Connect, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, ST7796, RM68140, SSD1351, SSD1963, ILI9225, HX8357D, GC9A01, R61581", 5 | "description": "A TFT and ePaper (SPI or parallel interface) graphics library with optimisation for Raspberry Pi Pico, RP2040, ESP8266, ESP32 and STM32 processors", 6 | "repository": 7 | { 8 | "type": "git", 9 | "url": "https://github.com/Bodmer/TFT_eSPI" 10 | }, 11 | "authors": 12 | [ 13 | { 14 | "name": "Bodmer", 15 | "email": "bodmer@anola.net", 16 | "maintainer": true 17 | } 18 | ], 19 | "frameworks": "arduino", 20 | "platforms": "raspberrypi, espressif8266, espressif32, ststm32", 21 | "headers": "TFT_eSPI.h" 22 | } 23 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # Arduino debug 21 | debug.cfg 22 | debug_custom.json 23 | *.svd 24 | 25 | # ========================= 26 | # Operating System Files 27 | # ========================= 28 | 29 | # OSX 30 | # ========================= 31 | 32 | .DS_Store 33 | .AppleDouble 34 | .LSOverride 35 | 36 | # Thumbnails 37 | ._* 38 | 39 | # Files that might appear in the root of a volume 40 | .DocumentRevisions-V100 41 | .fseventsd 42 | .Spotlight-V100 43 | .TemporaryItems 44 | .Trashes 45 | .VolumeIcon.icns 46 | 47 | # Directories potentially created on remote AFP share 48 | .AppleDB 49 | .AppleDesktop 50 | Network Trash Folder 51 | Temporary Items 52 | .apdisk 53 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TFT_eSPI", 3 | "version": "2.5.2", 4 | "keywords": "Arduino, tft, display, ttgo, LilyPi, WT32-SC01, ePaper, display, Pico, RP2040 Nano Connect, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, ST7796, RM68140, SSD1351, SSD1963, ILI9225, HX8357D, GC9A01, R61581", 5 | "description": "A TFT and ePaper (SPI or parallel interface) graphics library with optimisation for Raspberry Pi Pico, RP2040, ESP8266, ESP32 and STM32 processors", 6 | "repository": 7 | { 8 | "type": "git", 9 | "url": "https://github.com/Bodmer/TFT_eSPI" 10 | }, 11 | "authors": 12 | [ 13 | { 14 | "name": "Bodmer", 15 | "email": "bodmer@anola.net", 16 | "maintainer": true 17 | } 18 | ], 19 | "frameworks": "arduino", 20 | "platforms": "raspberrypi, espressif8266, espressif32, ststm32", 21 | "headers": "TFT_eSPI.h" 22 | } 23 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/GC9A01_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #ifndef TFT_WIDTH 4 | #define TFT_WIDTH 240 5 | #endif 6 | #ifndef TFT_HEIGHT 7 | #define TFT_HEIGHT 320 8 | #endif 9 | 10 | // Delay between some initialisation commands 11 | #define TFT_INIT_DELAY 0x80 12 | 13 | // Generic commands used by TFT_eSPI.cpp 14 | #define TFT_NOP 0x00 15 | #define TFT_SWRST 0x01 16 | 17 | #define TFT_CASET 0x2A 18 | #define TFT_PASET 0x2B 19 | #define TFT_RAMWR 0x2C 20 | 21 | #define TFT_RAMRD 0x2E 22 | #define TFT_IDXRD 0x00 //0xDD // ILI9341 only, indexed control register read 23 | 24 | #define TFT_MADCTL 0x36 25 | #define TFT_MAD_MY 0x80 26 | #define TFT_MAD_MX 0x40 27 | #define TFT_MAD_MV 0x20 28 | #define TFT_MAD_ML 0x10 29 | #define TFT_MAD_BGR 0x08 30 | #define TFT_MAD_MH 0x04 31 | #define TFT_MAD_RGB 0x00 32 | 33 | #define TFT_INVOFF 0x20 34 | #define TFT_INVON 0x21 35 | -------------------------------------------------------------------------------- /02-Simple_Config/README.md: -------------------------------------------------------------------------------- 1 | # Key-Value based Configurations 2 | This examples shows how to use configuration service without JSON deserialization. You could simply get each parameter by fetching it with its path. 3 | ## Download Settings 4 | Keep this JSON object in mind. 5 | ```json 6 | { 7 | "speed":180, 8 | "alarm":{ 9 | "number":"+188554436", 10 | "msg1":"Fire, please help", 11 | "msg2":"Emergency, please help" 12 | } 13 | } 14 | ``` 15 | The code below downloads all parameters into an object and then extracts the required parameters individually. 16 | ```cpp 17 | int speed = 100; 18 | String alarm_num; 19 | String alarm_msg1; 20 | 21 | OTAdrive_ns::KeyValueList configs; 22 | configs = OTADRIVE.getConfigValues(); 23 | 24 | if (configs.containsKey("speed")) 25 | speed = configs.value("speed").toInt(); 26 | 27 | if(configs.containsKey("alarm.number")) 28 | alarm_num = configs.value("alarm.number"); 29 | 30 | if(configs.containsKey("alarm.msg1")) 31 | alarm_msg1 = configs.value("alarm.msg1"); 32 | ``` -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/GC9A01_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #ifndef TFT_WIDTH 4 | #define TFT_WIDTH 240 5 | #endif 6 | #ifndef TFT_HEIGHT 7 | #define TFT_HEIGHT 320 8 | #endif 9 | 10 | // Delay between some initialisation commands 11 | #define TFT_INIT_DELAY 0x80 12 | 13 | // Generic commands used by TFT_eSPI.cpp 14 | #define TFT_NOP 0x00 15 | #define TFT_SWRST 0x01 16 | 17 | #define TFT_CASET 0x2A 18 | #define TFT_PASET 0x2B 19 | #define TFT_RAMWR 0x2C 20 | 21 | #define TFT_RAMRD 0x2E 22 | #define TFT_IDXRD 0x00 //0xDD // ILI9341 only, indexed control register read 23 | 24 | #define TFT_MADCTL 0x36 25 | #define TFT_MAD_MY 0x80 26 | #define TFT_MAD_MX 0x40 27 | #define TFT_MAD_MV 0x20 28 | #define TFT_MAD_ML 0x10 29 | #define TFT_MAD_BGR 0x08 30 | #define TFT_MAD_MH 0x04 31 | #define TFT_MAD_RGB 0x00 32 | 33 | #define TFT_INVOFF 0x20 34 | #define TFT_INVON 0x21 35 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup22_TTGO_T4.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T4 v1.1 ("Bitcoin Tracker") ESP32 board with 2.2" ILI9341 display 2 | #define USER_SETUP_ID 22 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ILI9341_DRIVER 7 | 8 | //#define TFT_BACKLIGHT_ON HIGH // LED control for TTGO T4 v1.3 only 9 | //#define TFT_BL 4 10 | 11 | #define TFT_MISO 12 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | 15 | #define TFT_CS 27 16 | #define TFT_DC 26 // pin 32 for TTGO T4 v1.3 17 | #define TFT_RST 5 18 | 19 | #define TOUCH_CS -1 20 | 21 | #define LOAD_GLCD 22 | #define LOAD_FONT2 23 | #define LOAD_FONT4 24 | #define LOAD_FONT6 25 | #define LOAD_FONT7 26 | #define LOAD_FONT8 27 | #define LOAD_GFXFF 28 | 29 | #define SMOOTH_FONT 30 | 31 | //#define SPI_FREQUENCY 27000000 32 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 33 | 34 | #define USE_HSPI_PORT 35 | 36 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 37 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup22_TTGO_T4.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T4 v1.1 ("Bitcoin Tracker") ESP32 board with 2.2" ILI9341 display 2 | #define USER_SETUP_ID 22 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ILI9341_DRIVER 7 | 8 | //#define TFT_BACKLIGHT_ON HIGH // LED control for TTGO T4 v1.3 only 9 | //#define TFT_BL 4 10 | 11 | #define TFT_MISO 12 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | 15 | #define TFT_CS 27 16 | #define TFT_DC 26 // pin 32 for TTGO T4 v1.3 17 | #define TFT_RST 5 18 | 19 | #define TOUCH_CS -1 20 | 21 | #define LOAD_GLCD 22 | #define LOAD_FONT2 23 | #define LOAD_FONT4 24 | #define LOAD_FONT6 25 | #define LOAD_FONT7 26 | #define LOAD_FONT8 27 | #define LOAD_GFXFF 28 | 29 | #define SMOOTH_FONT 30 | 31 | //#define SPI_FREQUENCY 27000000 32 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 33 | 34 | #define USE_HSPI_PORT 35 | 36 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 37 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/GC9A01_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #ifndef TFT_WIDTH 4 | #define TFT_WIDTH 240 5 | #endif 6 | #ifndef TFT_HEIGHT 7 | #define TFT_HEIGHT 320 8 | #endif 9 | 10 | // Delay between some initialisation commands 11 | #define TFT_INIT_DELAY 0x80 12 | 13 | // Generic commands used by TFT_eSPI.cpp 14 | #define TFT_NOP 0x00 15 | #define TFT_SWRST 0x01 16 | 17 | #define TFT_CASET 0x2A 18 | #define TFT_PASET 0x2B 19 | #define TFT_RAMWR 0x2C 20 | 21 | #define TFT_RAMRD 0x2E 22 | #define TFT_IDXRD 0x00 //0xDD // ILI9341 only, indexed control register read 23 | 24 | #define TFT_MADCTL 0x36 25 | #define TFT_MAD_MY 0x80 26 | #define TFT_MAD_MX 0x40 27 | #define TFT_MAD_MV 0x20 28 | #define TFT_MAD_ML 0x10 29 | #define TFT_MAD_BGR 0x08 30 | #define TFT_MAD_MH 0x04 31 | #define TFT_MAD_RGB 0x00 32 | 33 | #define TFT_INVOFF 0x20 34 | #define TFT_INVON 0x21 35 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup22_TTGO_T4.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T4 v1.1 ("Bitcoin Tracker") ESP32 board with 2.2" ILI9341 display 2 | #define USER_SETUP_ID 22 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ILI9341_DRIVER 7 | 8 | //#define TFT_BACKLIGHT_ON HIGH // LED control for TTGO T4 v1.3 only 9 | //#define TFT_BL 4 10 | 11 | #define TFT_MISO 12 12 | #define TFT_MOSI 23 13 | #define TFT_SCLK 18 14 | 15 | #define TFT_CS 27 16 | #define TFT_DC 26 // pin 32 for TTGO T4 v1.3 17 | #define TFT_RST 5 18 | 19 | #define TOUCH_CS -1 20 | 21 | #define LOAD_GLCD 22 | #define LOAD_FONT2 23 | #define LOAD_FONT4 24 | #define LOAD_FONT6 25 | #define LOAD_FONT7 26 | #define LOAD_FONT8 27 | #define LOAD_GFXFF 28 | 29 | #define SMOOTH_FONT 30 | 31 | //#define SPI_FREQUENCY 27000000 32 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 33 | 34 | #define USE_HSPI_PORT 35 | 36 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 37 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup70d_ILI9488_S3_Parallel.h: -------------------------------------------------------------------------------- 1 | 2 | #define USER_SETUP_ID 146 3 | 4 | #define TFT_PARALLEL_8_BIT 5 | 6 | //#define ILI9341_DRIVER 7 | //#define ST7796_DRIVER 8 | #define ILI9488_DRIVER 9 | 10 | // ESP32 S3 pins used for the parallel interface TFT 11 | #define TFT_CS 9 12 | #define TFT_DC 8 // Data Command control pin - must use a GPIO in the range 0-31 13 | #define TFT_RST 34 14 | 15 | #define TFT_WR 7 // Write strobe control pin - must use a GPIO in the range 0-31 16 | #define TFT_RD 6 17 | 18 | #define TFT_D0 12 // Must use GPIO in the range 0-31 for the data bus 19 | #define TFT_D1 13 // so a single register write sets/clears all bits 20 | #define TFT_D2 14 21 | #define TFT_D3 15 22 | #define TFT_D4 16 23 | #define TFT_D5 21 24 | #define TFT_D6 5 25 | #define TFT_D7 4 26 | 27 | 28 | #define LOAD_GLCD 29 | #define LOAD_FONT2 30 | #define LOAD_FONT4 31 | #define LOAD_FONT6 32 | #define LOAD_FONT7 33 | #define LOAD_FONT8 34 | #define LOAD_GFXFF 35 | 36 | #define SMOOTH_FONT 37 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup70d_ILI9488_S3_Parallel.h: -------------------------------------------------------------------------------- 1 | 2 | #define USER_SETUP_ID 146 3 | 4 | #define TFT_PARALLEL_8_BIT 5 | 6 | //#define ILI9341_DRIVER 7 | //#define ST7796_DRIVER 8 | #define ILI9488_DRIVER 9 | 10 | // ESP32 S3 pins used for the parallel interface TFT 11 | #define TFT_CS 9 12 | #define TFT_DC 8 // Data Command control pin - must use a GPIO in the range 0-31 13 | #define TFT_RST 34 14 | 15 | #define TFT_WR 7 // Write strobe control pin - must use a GPIO in the range 0-31 16 | #define TFT_RD 6 17 | 18 | #define TFT_D0 12 // Must use GPIO in the range 0-31 for the data bus 19 | #define TFT_D1 13 // so a single register write sets/clears all bits 20 | #define TFT_D2 14 21 | #define TFT_D3 15 22 | #define TFT_D4 16 23 | #define TFT_D5 21 24 | #define TFT_D6 5 25 | #define TFT_D7 4 26 | 27 | 28 | #define LOAD_GLCD 29 | #define LOAD_FONT2 30 | #define LOAD_FONT4 31 | #define LOAD_FONT6 32 | #define LOAD_FONT7 33 | #define LOAD_FONT8 34 | #define LOAD_GFXFF 35 | 36 | #define SMOOTH_FONT 37 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup70d_ILI9488_S3_Parallel.h: -------------------------------------------------------------------------------- 1 | 2 | #define USER_SETUP_ID 146 3 | 4 | #define TFT_PARALLEL_8_BIT 5 | 6 | //#define ILI9341_DRIVER 7 | //#define ST7796_DRIVER 8 | #define ILI9488_DRIVER 9 | 10 | // ESP32 S3 pins used for the parallel interface TFT 11 | #define TFT_CS 9 12 | #define TFT_DC 8 // Data Command control pin - must use a GPIO in the range 0-31 13 | #define TFT_RST 34 14 | 15 | #define TFT_WR 7 // Write strobe control pin - must use a GPIO in the range 0-31 16 | #define TFT_RD 6 17 | 18 | #define TFT_D0 12 // Must use GPIO in the range 0-31 for the data bus 19 | #define TFT_D1 13 // so a single register write sets/clears all bits 20 | #define TFT_D2 14 21 | #define TFT_D3 15 22 | #define TFT_D4 16 23 | #define TFT_D5 21 24 | #define TFT_D6 5 25 | #define TFT_D7 4 26 | 27 | 28 | #define LOAD_GLCD 29 | #define LOAD_FONT2 30 | #define LOAD_FONT4 31 | #define LOAD_FONT6 32 | #define LOAD_FONT7 33 | #define LOAD_FONT8 34 | #define LOAD_GFXFF 35 | 36 | #define SMOOTH_FONT 37 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Init.h: -------------------------------------------------------------------------------- 1 | { 2 | writecommand(0xFD); // COMMANDLOCK 3 | writedata(0x12); 4 | writecommand(0xFD); // COMMANDLOCK 5 | writedata(0xB1); 6 | writecommand(0xAE); // DISPLAYOFF 7 | writecommand(0xB3); // CLOCKDIV 8 | writedata(0xF1); 9 | writecommand(0xCA); // MUXRATIO 10 | writedata(127); 11 | writecommand(0xA2); // DISPLAYOFFSET 12 | writedata(0x00); 13 | writecommand(0xB5); // SETGPIO 14 | writedata(0x00); 15 | writecommand(0xAB); // FUNCTIONSELECT 16 | writedata(0x01); 17 | writecommand(0xB1); // PRECHARGE 18 | writedata(0x32); 19 | writecommand(0xBE); // VCOMH 20 | writedata(0x05); 21 | writecommand(0xA6); // NORMALDISPLAY 22 | writecommand(0xC1); // CONTRASTABC 23 | writedata(0xC8); 24 | writedata(0x80); 25 | writedata(0xC8); 26 | writecommand(0xC7); // CONTRASTMASTER 27 | writedata(0x0F); 28 | writecommand(0xB4); // SETVSL 29 | writedata(0xA0); 30 | writedata(0xB5); 31 | writedata(0x55); 32 | writecommand(0xB6); // PRECHARGE2 33 | writedata(0x01); 34 | writecommand(0xAF); // DISPLAYON 35 | } 36 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Init.h: -------------------------------------------------------------------------------- 1 | { 2 | writecommand(0xFD); // COMMANDLOCK 3 | writedata(0x12); 4 | writecommand(0xFD); // COMMANDLOCK 5 | writedata(0xB1); 6 | writecommand(0xAE); // DISPLAYOFF 7 | writecommand(0xB3); // CLOCKDIV 8 | writedata(0xF1); 9 | writecommand(0xCA); // MUXRATIO 10 | writedata(127); 11 | writecommand(0xA2); // DISPLAYOFFSET 12 | writedata(0x00); 13 | writecommand(0xB5); // SETGPIO 14 | writedata(0x00); 15 | writecommand(0xAB); // FUNCTIONSELECT 16 | writedata(0x01); 17 | writecommand(0xB1); // PRECHARGE 18 | writedata(0x32); 19 | writecommand(0xBE); // VCOMH 20 | writedata(0x05); 21 | writecommand(0xA6); // NORMALDISPLAY 22 | writecommand(0xC1); // CONTRASTABC 23 | writedata(0xC8); 24 | writedata(0x80); 25 | writedata(0xC8); 26 | writecommand(0xC7); // CONTRASTMASTER 27 | writedata(0x0F); 28 | writecommand(0xB4); // SETVSL 29 | writedata(0xA0); 30 | writedata(0xB5); 31 | writedata(0x55); 32 | writecommand(0xB6); // PRECHARGE2 33 | writedata(0x01); 34 | writecommand(0xAF); // DISPLAYON 35 | } 36 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/SSD1351_Init.h: -------------------------------------------------------------------------------- 1 | { 2 | writecommand(0xFD); // COMMANDLOCK 3 | writedata(0x12); 4 | writecommand(0xFD); // COMMANDLOCK 5 | writedata(0xB1); 6 | writecommand(0xAE); // DISPLAYOFF 7 | writecommand(0xB3); // CLOCKDIV 8 | writedata(0xF1); 9 | writecommand(0xCA); // MUXRATIO 10 | writedata(127); 11 | writecommand(0xA2); // DISPLAYOFFSET 12 | writedata(0x00); 13 | writecommand(0xB5); // SETGPIO 14 | writedata(0x00); 15 | writecommand(0xAB); // FUNCTIONSELECT 16 | writedata(0x01); 17 | writecommand(0xB1); // PRECHARGE 18 | writedata(0x32); 19 | writecommand(0xBE); // VCOMH 20 | writedata(0x05); 21 | writecommand(0xA6); // NORMALDISPLAY 22 | writecommand(0xC1); // CONTRASTABC 23 | writedata(0xC8); 24 | writedata(0x80); 25 | writedata(0xC8); 26 | writecommand(0xC7); // CONTRASTMASTER 27 | writedata(0x0F); 28 | writecommand(0xB4); // SETVSL 29 | writedata(0xA0); 30 | writedata(0xB5); 31 | writedata(0x55); 32 | writecommand(0xB6); // PRECHARGE2 33 | writedata(0x01); 34 | writecommand(0xAF); // DISPLAYON 35 | } 36 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h: -------------------------------------------------------------------------------- 1 | // ST7789 using 8-bit Parallel 2 | 3 | #define USER_SETUP_ID 206 4 | 5 | #define ST7789_DRIVER 6 | #define INIT_SEQUENCE_3 // Using this initialisation sequence improves the display image 7 | 8 | #define CGRAM_OFFSET 9 | #define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue 10 | //#define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red 11 | 12 | #define TFT_INVERSION_ON 13 | // #define TFT_INVERSION_OFF 14 | 15 | #define TFT_PARALLEL_8_BIT 16 | 17 | #define TFT_WIDTH 170 18 | #define TFT_HEIGHT 320 19 | 20 | #define TFT_DC 7 21 | #define TFT_RST 5 22 | 23 | #define TFT_WR 8 24 | #define TFT_RD 9 25 | 26 | #define TFT_D0 39 27 | #define TFT_D1 40 28 | #define TFT_D2 41 29 | #define TFT_D3 42 30 | #define TFT_D4 45 31 | #define TFT_D5 46 32 | #define TFT_D6 47 33 | #define TFT_D7 48 34 | 35 | #define TFT_BL 38 36 | #define TFT_BACKLIGHT_ON HIGH 37 | 38 | #define LOAD_GLCD 39 | #define LOAD_FONT2 40 | #define LOAD_FONT4 41 | #define LOAD_FONT6 42 | #define LOAD_FONT7 43 | #define LOAD_FONT8 44 | #define LOAD_GFXFF 45 | 46 | #define SMOOTH_FONT 47 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h: -------------------------------------------------------------------------------- 1 | // ST7789 using 8-bit Parallel 2 | 3 | #define USER_SETUP_ID 206 4 | 5 | #define ST7789_DRIVER 6 | #define INIT_SEQUENCE_3 // Using this initialisation sequence improves the display image 7 | 8 | #define CGRAM_OFFSET 9 | #define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue 10 | //#define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red 11 | 12 | #define TFT_INVERSION_ON 13 | // #define TFT_INVERSION_OFF 14 | 15 | #define TFT_PARALLEL_8_BIT 16 | 17 | #define TFT_WIDTH 170 18 | #define TFT_HEIGHT 320 19 | 20 | #define TFT_DC 7 21 | #define TFT_RST 5 22 | 23 | #define TFT_WR 8 24 | #define TFT_RD 9 25 | 26 | #define TFT_D0 39 27 | #define TFT_D1 40 28 | #define TFT_D2 41 29 | #define TFT_D3 42 30 | #define TFT_D4 45 31 | #define TFT_D5 46 32 | #define TFT_D6 47 33 | #define TFT_D7 48 34 | 35 | #define TFT_BL 38 36 | #define TFT_BACKLIGHT_ON HIGH 37 | 38 | #define LOAD_GLCD 39 | #define LOAD_FONT2 40 | #define LOAD_FONT4 41 | #define LOAD_FONT6 42 | #define LOAD_FONT7 43 | #define LOAD_FONT8 44 | #define LOAD_GFXFF 45 | 46 | #define SMOOTH_FONT 47 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup206_LilyGo_T_Display_S3.h: -------------------------------------------------------------------------------- 1 | // ST7789 using 8-bit Parallel 2 | 3 | #define USER_SETUP_ID 206 4 | 5 | #define ST7789_DRIVER 6 | #define INIT_SEQUENCE_3 // Using this initialisation sequence improves the display image 7 | 8 | #define CGRAM_OFFSET 9 | #define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue 10 | //#define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red 11 | 12 | #define TFT_INVERSION_ON 13 | // #define TFT_INVERSION_OFF 14 | 15 | #define TFT_PARALLEL_8_BIT 16 | 17 | #define TFT_WIDTH 170 18 | #define TFT_HEIGHT 320 19 | 20 | #define TFT_DC 7 21 | #define TFT_RST 5 22 | 23 | #define TFT_WR 8 24 | #define TFT_RD 9 25 | 26 | #define TFT_D0 39 27 | #define TFT_D1 40 28 | #define TFT_D2 41 29 | #define TFT_D3 42 30 | #define TFT_D4 45 31 | #define TFT_D5 46 32 | #define TFT_D6 47 33 | #define TFT_D7 48 34 | 35 | #define TFT_BL 38 36 | #define TFT_BACKLIGHT_ON HIGH 37 | 38 | #define LOAD_GLCD 39 | #define LOAD_FONT2 40 | #define LOAD_FONT4 41 | #define LOAD_FONT6 42 | #define LOAD_FONT7 43 | #define LOAD_FONT8 44 | #define LOAD_GFXFF 45 | 46 | #define SMOOTH_FONT 47 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T Display 2 | #define USER_SETUP_ID 25 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER 7 | #define TFT_SDA_READ // Display has a bidirectional SDA pin 8 | 9 | #define TFT_WIDTH 135 10 | #define TFT_HEIGHT 240 11 | 12 | #define CGRAM_OFFSET // Library will add offsets required 13 | 14 | //#define TFT_MISO -1 15 | 16 | #define TFT_MOSI 19 17 | #define TFT_SCLK 18 18 | #define TFT_CS 5 19 | #define TFT_DC 16 20 | #define TFT_RST 23 21 | 22 | #define TFT_BL 4 // Display backlight control pin 23 | 24 | #define TFT_BACKLIGHT_ON HIGH // HIGH or LOW are options 25 | 26 | #define LOAD_GLCD 27 | #define LOAD_FONT2 28 | #define LOAD_FONT4 29 | #define LOAD_FONT6 30 | #define LOAD_FONT7 31 | #define LOAD_FONT8 32 | #define LOAD_GFXFF 33 | 34 | #define SMOOTH_FONT 35 | 36 | //#define SPI_FREQUENCY 27000000 37 | #define SPI_FREQUENCY 40000000 38 | 39 | 40 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 41 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T Display 2 | #define USER_SETUP_ID 25 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER 7 | #define TFT_SDA_READ // Display has a bidirectional SDA pin 8 | 9 | #define TFT_WIDTH 135 10 | #define TFT_HEIGHT 240 11 | 12 | #define CGRAM_OFFSET // Library will add offsets required 13 | 14 | //#define TFT_MISO -1 15 | 16 | #define TFT_MOSI 19 17 | #define TFT_SCLK 18 18 | #define TFT_CS 5 19 | #define TFT_DC 16 20 | #define TFT_RST 23 21 | 22 | #define TFT_BL 4 // Display backlight control pin 23 | 24 | #define TFT_BACKLIGHT_ON HIGH // HIGH or LOW are options 25 | 26 | #define LOAD_GLCD 27 | #define LOAD_FONT2 28 | #define LOAD_FONT4 29 | #define LOAD_FONT6 30 | #define LOAD_FONT7 31 | #define LOAD_FONT8 32 | #define LOAD_GFXFF 33 | 34 | #define SMOOTH_FONT 35 | 36 | //#define SPI_FREQUENCY 27000000 37 | #define SPI_FREQUENCY 40000000 38 | 39 | 40 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 41 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO T Display 2 | #define USER_SETUP_ID 25 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER 7 | #define TFT_SDA_READ // Display has a bidirectional SDA pin 8 | 9 | #define TFT_WIDTH 135 10 | #define TFT_HEIGHT 240 11 | 12 | #define CGRAM_OFFSET // Library will add offsets required 13 | 14 | //#define TFT_MISO -1 15 | 16 | #define TFT_MOSI 19 17 | #define TFT_SCLK 18 18 | #define TFT_CS 5 19 | #define TFT_DC 16 20 | #define TFT_RST 23 21 | 22 | #define TFT_BL 4 // Display backlight control pin 23 | 24 | #define TFT_BACKLIGHT_ON HIGH // HIGH or LOW are options 25 | 26 | #define LOAD_GLCD 27 | #define LOAD_FONT2 28 | #define LOAD_FONT4 29 | #define LOAD_FONT6 30 | #define LOAD_FONT7 31 | #define LOAD_FONT8 32 | #define LOAD_GFXFF 33 | 34 | #define SMOOTH_FONT 35 | 36 | //#define SPI_FREQUENCY 27000000 37 | #define SPI_FREQUENCY 40000000 38 | 39 | 40 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 41 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup70_ESP32_S2_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S2 with ILI9341 display 2 | // Note SPI DMA with ESP32 S2 is not currently supported 3 | #define USER_SETUP_ID 70 4 | // See SetupX_Template.h for all options available 5 | #define ILI9341_DRIVER 6 | 7 | // Typical board default pins 8 | #define TFT_CS 10 // 10 or 34 9 | 10 | #define TFT_MOSI 11 // 11 or 35 11 | #define TFT_SCLK 12 // 12 or 36 12 | #define TFT_MISO 13 // 13 or 37 13 | 14 | #define TFT_DC 14 15 | #define TFT_RST 15 16 | 17 | //#define TOUCH_CS 16 // Optional for touch screen 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | // FSPI port will be used unless the following is defined 30 | #define USE_HSPI_PORT 31 | 32 | //#define SPI_FREQUENCY 27000000 33 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 34 | 35 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 36 | 37 | #define SPI_TOUCH_FREQUENCY 2500000 38 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup70_ESP32_S2_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S2 with ILI9341 display 2 | // Note SPI DMA with ESP32 S2 is not currently supported 3 | #define USER_SETUP_ID 70 4 | // See SetupX_Template.h for all options available 5 | #define ILI9341_DRIVER 6 | 7 | // Typical board default pins 8 | #define TFT_CS 10 // 10 or 34 9 | 10 | #define TFT_MOSI 11 // 11 or 35 11 | #define TFT_SCLK 12 // 12 or 36 12 | #define TFT_MISO 13 // 13 or 37 13 | 14 | #define TFT_DC 14 15 | #define TFT_RST 15 16 | 17 | //#define TOUCH_CS 16 // Optional for touch screen 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | // FSPI port will be used unless the following is defined 30 | #define USE_HSPI_PORT 31 | 32 | //#define SPI_FREQUENCY 27000000 33 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 34 | 35 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 36 | 37 | #define SPI_TOUCH_FREQUENCY 2500000 38 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup70_ESP32_S2_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S2 with ILI9341 display 2 | // Note SPI DMA with ESP32 S2 is not currently supported 3 | #define USER_SETUP_ID 70 4 | // See SetupX_Template.h for all options available 5 | #define ILI9341_DRIVER 6 | 7 | // Typical board default pins 8 | #define TFT_CS 10 // 10 or 34 9 | 10 | #define TFT_MOSI 11 // 11 or 35 11 | #define TFT_SCLK 12 // 12 or 36 12 | #define TFT_MISO 13 // 13 or 37 13 | 14 | #define TFT_DC 14 15 | #define TFT_RST 15 16 | 17 | //#define TOUCH_CS 16 // Optional for touch screen 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | // FSPI port will be used unless the following is defined 30 | #define USE_HSPI_PORT 31 | 32 | //#define SPI_FREQUENCY 27000000 33 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 34 | 35 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 36 | 37 | #define SPI_TOUCH_FREQUENCY 2500000 38 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/R61581_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/ILI9481_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/ILI9488_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/R61581_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/RM68140_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/ILI9481_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/ILI9488_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/RM68140_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/ILI9481_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/ILI9488_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/R61581_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/RM68140_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPI.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 43 | -------------------------------------------------------------------------------- /01-Simple_FOTA/ESP-IDF/simple_fota/.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "ESP-IDF", 5 | "compilerPath": "${config:idf.toolsPathWin}\\tools\\xtensa-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe", 6 | "compileCommands": "${workspaceFolder}/build/compile_commands.json", 7 | "includePath": [ 8 | "${config:idf.espIdfPath}/components/**", 9 | "${config:idf.espIdfPathWin}/components/**", 10 | "${config:idf.espAdfPath}/components/**", 11 | "${config:idf.espAdfPathWin}/components/**", 12 | "${workspaceFolder}/**" 13 | ], 14 | "browse": { 15 | "path": [ 16 | "${config:idf.espIdfPath}/components", 17 | "${config:idf.espIdfPathWin}/components", 18 | "${config:idf.espAdfPath}/components/**", 19 | "${config:idf.espAdfPathWin}/components/**", 20 | "${workspaceFolder}" 21 | ], 22 | "limitSymbolsToIncludedHeaders": false 23 | } 24 | } 25 | ], 26 | "version": 4 27 | } 28 | -------------------------------------------------------------------------------- /02-Simple_Config/ESP-IDF/simple_config/.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "ESP-IDF", 5 | "compilerPath": "${config:idf.toolsPathWin}\\tools\\xtensa-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe", 6 | "compileCommands": "${workspaceFolder}/build/compile_commands.json", 7 | "includePath": [ 8 | "${config:idf.espIdfPath}/components/**", 9 | "${config:idf.espIdfPathWin}/components/**", 10 | "${config:idf.espAdfPath}/components/**", 11 | "${config:idf.espAdfPathWin}/components/**", 12 | "${workspaceFolder}/**" 13 | ], 14 | "browse": { 15 | "path": [ 16 | "${config:idf.espIdfPath}/components", 17 | "${config:idf.espIdfPathWin}/components", 18 | "${config:idf.espAdfPath}/components/**", 19 | "${config:idf.espAdfPathWin}/components/**", 20 | "${workspaceFolder}" 21 | ], 22 | "limitSymbolsToIncludedHeaders": false 23 | } 24 | } 25 | ], 26 | "version": 4 27 | } 28 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/ILI9163_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the ILI9163 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | #ifdef CGRAM_OFFSET 13 | colstart = 0; 14 | rowstart = 0; 15 | #endif 16 | break; 17 | case 1: 18 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 19 | _width = _init_height; 20 | _height = _init_width; 21 | #ifdef CGRAM_OFFSET 22 | colstart = 0; 23 | rowstart = 0; 24 | #endif 25 | break; 26 | case 2: 27 | writedata(TFT_MAD_BGR); 28 | _width = _init_width; 29 | _height = _init_height; 30 | #ifdef CGRAM_OFFSET 31 | colstart = 0; 32 | rowstart = 32; 33 | #endif 34 | break; 35 | case 3: 36 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 37 | _width = _init_height; 38 | _height = _init_width; 39 | #ifdef CGRAM_OFFSET 40 | colstart = 32; 41 | rowstart = 0; 42 | #endif 43 | break; 44 | } 45 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/ILI9163_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the ILI9163 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | #ifdef CGRAM_OFFSET 13 | colstart = 0; 14 | rowstart = 0; 15 | #endif 16 | break; 17 | case 1: 18 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 19 | _width = _init_height; 20 | _height = _init_width; 21 | #ifdef CGRAM_OFFSET 22 | colstart = 0; 23 | rowstart = 0; 24 | #endif 25 | break; 26 | case 2: 27 | writedata(TFT_MAD_BGR); 28 | _width = _init_width; 29 | _height = _init_height; 30 | #ifdef CGRAM_OFFSET 31 | colstart = 0; 32 | rowstart = 32; 33 | #endif 34 | break; 35 | case 3: 36 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 37 | _width = _init_height; 38 | _height = _init_width; 39 | #ifdef CGRAM_OFFSET 40 | colstart = 32; 41 | rowstart = 0; 42 | #endif 43 | break; 44 | } 45 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/ILI9163_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the ILI9163 driver coordinate frame 3 | 4 | rotation = m % 4; 5 | 6 | writecommand(TFT_MADCTL); 7 | switch (rotation) { 8 | case 0: 9 | writedata(TFT_MAD_MX | TFT_MAD_MY | TFT_MAD_BGR); 10 | _width = _init_width; 11 | _height = _init_height; 12 | #ifdef CGRAM_OFFSET 13 | colstart = 0; 14 | rowstart = 0; 15 | #endif 16 | break; 17 | case 1: 18 | writedata(TFT_MAD_MV | TFT_MAD_MY | TFT_MAD_BGR); 19 | _width = _init_height; 20 | _height = _init_width; 21 | #ifdef CGRAM_OFFSET 22 | colstart = 0; 23 | rowstart = 0; 24 | #endif 25 | break; 26 | case 2: 27 | writedata(TFT_MAD_BGR); 28 | _width = _init_width; 29 | _height = _init_height; 30 | #ifdef CGRAM_OFFSET 31 | colstart = 0; 32 | rowstart = 32; 33 | #endif 34 | break; 35 | case 3: 36 | writedata(TFT_MAD_MX | TFT_MAD_MV | TFT_MAD_BGR); 37 | _width = _init_height; 38 | _height = _init_width; 39 | #ifdef CGRAM_OFFSET 40 | colstart = 32; 41 | rowstart = 0; 42 | #endif 43 | break; 44 | } 45 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup70b_ESP32_S3_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S3 with ILI9341 display 2 | // Note SPI DMA with ESP32 S3 is not currently supported 3 | #define USER_SETUP_ID 70 4 | // See SetupX_Template.h for all options available 5 | #define ILI9341_DRIVER 6 | 7 | // Typical board default pins - change to match your board 8 | #define TFT_CS 34 // 10 or 34 (FSPI CS0) 9 | #define TFT_MOSI 35 // 11 or 35 (FSPI D) 10 | #define TFT_SCLK 36 // 12 or 36 (FSPI CLK) 11 | #define TFT_MISO 37 // 13 or 37 (FSPI Q) 12 | 13 | // Use pins in range 0-31 14 | #define TFT_DC 7 15 | #define TFT_RST 6 16 | 17 | //#define TOUCH_CS 16 // Optional for touch screen 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | // FSPI (or VSPI) port (SPI2) used unless following defined. HSPI port is (SPI3) on S3. 30 | //#define USE_HSPI_PORT 31 | 32 | //#define SPI_FREQUENCY 27000000 33 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 34 | 35 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 36 | 37 | #define SPI_TOUCH_FREQUENCY 2500000 38 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup70b_ESP32_S3_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S3 with ILI9341 display 2 | // Note SPI DMA with ESP32 S3 is not currently supported 3 | #define USER_SETUP_ID 70 4 | // See SetupX_Template.h for all options available 5 | #define ILI9341_DRIVER 6 | 7 | // Typical board default pins - change to match your board 8 | #define TFT_CS 34 // 10 or 34 (FSPI CS0) 9 | #define TFT_MOSI 35 // 11 or 35 (FSPI D) 10 | #define TFT_SCLK 36 // 12 or 36 (FSPI CLK) 11 | #define TFT_MISO 37 // 13 or 37 (FSPI Q) 12 | 13 | // Use pins in range 0-31 14 | #define TFT_DC 7 15 | #define TFT_RST 6 16 | 17 | //#define TOUCH_CS 16 // Optional for touch screen 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | // FSPI (or VSPI) port (SPI2) used unless following defined. HSPI port is (SPI3) on S3. 30 | //#define USE_HSPI_PORT 31 | 32 | //#define SPI_FREQUENCY 27000000 33 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 34 | 35 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 36 | 37 | #define SPI_TOUCH_FREQUENCY 2500000 38 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/RM68140_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the RM68140 driver coordinate frame 2 | 3 | 4 | writecommand(TFT_MADCTL); 5 | rotation = m % 4; 6 | switch (rotation) { 7 | case 0: // Portrait 8 | writedata(TFT_MAD_BGR); 9 | writecommand(0xB6); 10 | writedata(0); 11 | writedata(0x22); 12 | writedata(0x3B); 13 | _width = TFT_WIDTH; 14 | _height = TFT_HEIGHT; 15 | break; 16 | case 1: // Landscape (Portrait + 90) 17 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 18 | writecommand(0xB6); 19 | writedata(0); 20 | writedata(0x02); 21 | writedata(0x3B); 22 | _width = TFT_HEIGHT; 23 | _height = TFT_WIDTH; 24 | break; 25 | case 2: // Inverter portrait 26 | writedata(TFT_MAD_BGR); 27 | writecommand(0xB6); 28 | writedata(0); 29 | writedata(0x42); 30 | writedata(0x3B); 31 | _width = TFT_WIDTH; 32 | _height = TFT_HEIGHT; 33 | break; 34 | case 3: // Inverted landscape 35 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 36 | writecommand(0xB6); 37 | writedata(0); 38 | writedata(0x62); 39 | writedata(0x3B); 40 | _width = TFT_HEIGHT; 41 | _height = TFT_WIDTH; 42 | break; 43 | } 44 | 45 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/RM68140_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the RM68140 driver coordinate frame 2 | 3 | 4 | writecommand(TFT_MADCTL); 5 | rotation = m % 4; 6 | switch (rotation) { 7 | case 0: // Portrait 8 | writedata(TFT_MAD_BGR); 9 | writecommand(0xB6); 10 | writedata(0); 11 | writedata(0x22); 12 | writedata(0x3B); 13 | _width = TFT_WIDTH; 14 | _height = TFT_HEIGHT; 15 | break; 16 | case 1: // Landscape (Portrait + 90) 17 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 18 | writecommand(0xB6); 19 | writedata(0); 20 | writedata(0x02); 21 | writedata(0x3B); 22 | _width = TFT_HEIGHT; 23 | _height = TFT_WIDTH; 24 | break; 25 | case 2: // Inverter portrait 26 | writedata(TFT_MAD_BGR); 27 | writecommand(0xB6); 28 | writedata(0); 29 | writedata(0x42); 30 | writedata(0x3B); 31 | _width = TFT_WIDTH; 32 | _height = TFT_HEIGHT; 33 | break; 34 | case 3: // Inverted landscape 35 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 36 | writecommand(0xB6); 37 | writedata(0); 38 | writedata(0x62); 39 | writedata(0x3B); 40 | _width = TFT_HEIGHT; 41 | _height = TFT_WIDTH; 42 | break; 43 | } 44 | 45 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup70b_ESP32_S3_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 S3 with ILI9341 display 2 | // Note SPI DMA with ESP32 S3 is not currently supported 3 | #define USER_SETUP_ID 70 4 | // See SetupX_Template.h for all options available 5 | #define ILI9341_DRIVER 6 | 7 | // Typical board default pins - change to match your board 8 | #define TFT_CS 34 // 10 or 34 (FSPI CS0) 9 | #define TFT_MOSI 35 // 11 or 35 (FSPI D) 10 | #define TFT_SCLK 36 // 12 or 36 (FSPI CLK) 11 | #define TFT_MISO 37 // 13 or 37 (FSPI Q) 12 | 13 | // Use pins in range 0-31 14 | #define TFT_DC 7 15 | #define TFT_RST 6 16 | 17 | //#define TOUCH_CS 16 // Optional for touch screen 18 | 19 | #define LOAD_GLCD 20 | #define LOAD_FONT2 21 | #define LOAD_FONT4 22 | #define LOAD_FONT6 23 | #define LOAD_FONT7 24 | #define LOAD_FONT8 25 | #define LOAD_GFXFF 26 | 27 | #define SMOOTH_FONT 28 | 29 | // FSPI (or VSPI) port (SPI2) used unless following defined. HSPI port is (SPI3) on S3. 30 | //#define USE_HSPI_PORT 31 | 32 | //#define SPI_FREQUENCY 27000000 33 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 34 | 35 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 36 | 37 | #define SPI_TOUCH_FREQUENCY 2500000 38 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/RM68140_Rotation.h: -------------------------------------------------------------------------------- 1 | // This is the command sequence that rotates the RM68140 driver coordinate frame 2 | 3 | 4 | writecommand(TFT_MADCTL); 5 | rotation = m % 4; 6 | switch (rotation) { 7 | case 0: // Portrait 8 | writedata(TFT_MAD_BGR); 9 | writecommand(0xB6); 10 | writedata(0); 11 | writedata(0x22); 12 | writedata(0x3B); 13 | _width = TFT_WIDTH; 14 | _height = TFT_HEIGHT; 15 | break; 16 | case 1: // Landscape (Portrait + 90) 17 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 18 | writecommand(0xB6); 19 | writedata(0); 20 | writedata(0x02); 21 | writedata(0x3B); 22 | _width = TFT_HEIGHT; 23 | _height = TFT_WIDTH; 24 | break; 25 | case 2: // Inverter portrait 26 | writedata(TFT_MAD_BGR); 27 | writecommand(0xB6); 28 | writedata(0); 29 | writedata(0x42); 30 | writedata(0x3B); 31 | _width = TFT_WIDTH; 32 | _height = TFT_HEIGHT; 33 | break; 34 | case 3: // Inverted landscape 35 | writedata(TFT_MAD_MV | TFT_MAD_BGR); 36 | writecommand(0xB6); 37 | writedata(0); 38 | writedata(0x62); 39 | writedata(0x3B); 40 | _width = TFT_HEIGHT; 41 | _height = TFT_WIDTH; 42 | break; 43 | } 44 | 45 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup23_TTGO_TM.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO TM (Music) ESP32 board with 2.4" ST7789V display 2 | #define USER_SETUP_ID 23 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER 7 | 8 | #define TFT_SDA_READ // Read from display, it only provides an SDA pin 9 | 10 | #define TFT_MISO 19 // Must be defined even though it is not used 11 | #define TFT_MOSI 23 // Connected to display SDA line 12 | #define TFT_SCLK 18 13 | 14 | #define TFT_CS 05 15 | #define TFT_DC 16 16 | #define TFT_RST 17 17 | 18 | #define TOUCH_CS -1 19 | 20 | #define TFT_WIDTH 240 21 | #define TFT_HEIGHT 320 22 | 23 | //#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue 24 | #define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red 25 | 26 | // Black and white swap option 27 | //#define TFT_INVERSION_ON 28 | #define TFT_INVERSION_OFF 29 | 30 | #define LOAD_GLCD 31 | #define LOAD_FONT2 32 | #define LOAD_FONT4 33 | #define LOAD_FONT6 34 | #define LOAD_FONT7 35 | #define LOAD_FONT8 36 | #define LOAD_GFXFF 37 | 38 | #define SMOOTH_FONT 39 | 40 | #define SPI_FREQUENCY 40000000 // This display also seems to work reliably at 80MHz 41 | //#define SPI_FREQUENCY 80000000 42 | 43 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 44 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup23_TTGO_TM.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO TM (Music) ESP32 board with 2.4" ST7789V display 2 | #define USER_SETUP_ID 23 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER 7 | 8 | #define TFT_SDA_READ // Read from display, it only provides an SDA pin 9 | 10 | #define TFT_MISO 19 // Must be defined even though it is not used 11 | #define TFT_MOSI 23 // Connected to display SDA line 12 | #define TFT_SCLK 18 13 | 14 | #define TFT_CS 05 15 | #define TFT_DC 16 16 | #define TFT_RST 17 17 | 18 | #define TOUCH_CS -1 19 | 20 | #define TFT_WIDTH 240 21 | #define TFT_HEIGHT 320 22 | 23 | //#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue 24 | #define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red 25 | 26 | // Black and white swap option 27 | //#define TFT_INVERSION_ON 28 | #define TFT_INVERSION_OFF 29 | 30 | #define LOAD_GLCD 31 | #define LOAD_FONT2 32 | #define LOAD_FONT4 33 | #define LOAD_FONT6 34 | #define LOAD_FONT7 35 | #define LOAD_FONT8 36 | #define LOAD_GFXFF 37 | 38 | #define SMOOTH_FONT 39 | 40 | #define SPI_FREQUENCY 40000000 // This display also seems to work reliably at 80MHz 41 | //#define SPI_FREQUENCY 80000000 42 | 43 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 44 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup23_TTGO_TM.h: -------------------------------------------------------------------------------- 1 | // Setup for the TTGO TM (Music) ESP32 board with 2.4" ST7789V display 2 | #define USER_SETUP_ID 23 3 | 4 | // See SetupX_Template.h for all options available 5 | 6 | #define ST7789_DRIVER 7 | 8 | #define TFT_SDA_READ // Read from display, it only provides an SDA pin 9 | 10 | #define TFT_MISO 19 // Must be defined even though it is not used 11 | #define TFT_MOSI 23 // Connected to display SDA line 12 | #define TFT_SCLK 18 13 | 14 | #define TFT_CS 05 15 | #define TFT_DC 16 16 | #define TFT_RST 17 17 | 18 | #define TOUCH_CS -1 19 | 20 | #define TFT_WIDTH 240 21 | #define TFT_HEIGHT 320 22 | 23 | //#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue 24 | #define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red 25 | 26 | // Black and white swap option 27 | //#define TFT_INVERSION_ON 28 | #define TFT_INVERSION_OFF 29 | 30 | #define LOAD_GLCD 31 | #define LOAD_FONT2 32 | #define LOAD_FONT4 33 | #define LOAD_FONT6 34 | #define LOAD_FONT7 35 | #define LOAD_FONT8 36 | #define LOAD_GFXFF 37 | 38 | #define SMOOTH_FONT 39 | 40 | #define SPI_FREQUENCY 40000000 // This display also seems to work reliably at 80MHz 41 | //#define SPI_FREQUENCY 80000000 42 | 43 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 44 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup70c_ESP32_C3_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 C3 with ILI9341 display 2 | // Note SPI DMA with ESP32 C3 is not currently supported 3 | 4 | #define USER_SETUP_ID 70 5 | // See SetupX_Template.h for all options available 6 | 7 | #define ILI9341_DRIVER 8 | //#define ST7796_DRIVER 9 | //#define ILI9488_DRIVER 10 | 11 | // Adafruit qtpy default 12 | //TFT_CS 6 13 | //TFT_MOSI 7 14 | //TFT_MISO 8 15 | //TFT_SCLK 10 16 | 17 | // Lolin C3 mini default 18 | //TFT_CS 5 19 | //TFT_MOSI 4 20 | //TFT_MISO 3 21 | //TFT_SCLK 2 22 | 23 | //ESP32 C3 generic default 24 | //TFT_CS 7 25 | //TFT_MOSI 6 26 | //TFT_MISO 5 27 | //TFT_SCLK 4 28 | 29 | 30 | #define TFT_CS 7 31 | 32 | #define TFT_MOSI 6 33 | #define TFT_MISO 5 34 | #define TFT_SCLK 4 35 | 36 | #define TFT_DC 8 37 | #define TFT_RST 10 38 | 39 | //#define TOUCH_CS 1 // Optional for touch screen 40 | 41 | #define LOAD_GLCD 42 | #define LOAD_FONT2 43 | #define LOAD_FONT4 44 | #define LOAD_FONT6 45 | #define LOAD_FONT7 46 | #define LOAD_FONT8 47 | #define LOAD_GFXFF 48 | 49 | #define SMOOTH_FONT 50 | 51 | //#define SPI_FREQUENCY 27000000 52 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 53 | 54 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 55 | 56 | #define SPI_TOUCH_FREQUENCY 2500000 57 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup70c_ESP32_C3_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 C3 with ILI9341 display 2 | // Note SPI DMA with ESP32 C3 is not currently supported 3 | 4 | #define USER_SETUP_ID 70 5 | // See SetupX_Template.h for all options available 6 | 7 | #define ILI9341_DRIVER 8 | //#define ST7796_DRIVER 9 | //#define ILI9488_DRIVER 10 | 11 | // Adafruit qtpy default 12 | //TFT_CS 6 13 | //TFT_MOSI 7 14 | //TFT_MISO 8 15 | //TFT_SCLK 10 16 | 17 | // Lolin C3 mini default 18 | //TFT_CS 5 19 | //TFT_MOSI 4 20 | //TFT_MISO 3 21 | //TFT_SCLK 2 22 | 23 | //ESP32 C3 generic default 24 | //TFT_CS 7 25 | //TFT_MOSI 6 26 | //TFT_MISO 5 27 | //TFT_SCLK 4 28 | 29 | 30 | #define TFT_CS 7 31 | 32 | #define TFT_MOSI 6 33 | #define TFT_MISO 5 34 | #define TFT_SCLK 4 35 | 36 | #define TFT_DC 8 37 | #define TFT_RST 10 38 | 39 | //#define TOUCH_CS 1 // Optional for touch screen 40 | 41 | #define LOAD_GLCD 42 | #define LOAD_FONT2 43 | #define LOAD_FONT4 44 | #define LOAD_FONT6 45 | #define LOAD_FONT7 46 | #define LOAD_FONT8 47 | #define LOAD_GFXFF 48 | 49 | #define SMOOTH_FONT 50 | 51 | //#define SPI_FREQUENCY 27000000 52 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 53 | 54 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 55 | 56 | #define SPI_TOUCH_FREQUENCY 2500000 57 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup70c_ESP32_C3_ILI9341.h: -------------------------------------------------------------------------------- 1 | // Setup for the ESP32 C3 with ILI9341 display 2 | // Note SPI DMA with ESP32 C3 is not currently supported 3 | 4 | #define USER_SETUP_ID 70 5 | // See SetupX_Template.h for all options available 6 | 7 | #define ILI9341_DRIVER 8 | //#define ST7796_DRIVER 9 | //#define ILI9488_DRIVER 10 | 11 | // Adafruit qtpy default 12 | //TFT_CS 6 13 | //TFT_MOSI 7 14 | //TFT_MISO 8 15 | //TFT_SCLK 10 16 | 17 | // Lolin C3 mini default 18 | //TFT_CS 5 19 | //TFT_MOSI 4 20 | //TFT_MISO 3 21 | //TFT_SCLK 2 22 | 23 | //ESP32 C3 generic default 24 | //TFT_CS 7 25 | //TFT_MOSI 6 26 | //TFT_MISO 5 27 | //TFT_SCLK 4 28 | 29 | 30 | #define TFT_CS 7 31 | 32 | #define TFT_MOSI 6 33 | #define TFT_MISO 5 34 | #define TFT_SCLK 4 35 | 36 | #define TFT_DC 8 37 | #define TFT_RST 10 38 | 39 | //#define TOUCH_CS 1 // Optional for touch screen 40 | 41 | #define LOAD_GLCD 42 | #define LOAD_FONT2 43 | #define LOAD_FONT4 44 | #define LOAD_FONT6 45 | #define LOAD_FONT7 46 | #define LOAD_FONT8 47 | #define LOAD_GFXFF 48 | 49 | #define SMOOTH_FONT 50 | 51 | //#define SPI_FREQUENCY 27000000 52 | #define SPI_FREQUENCY 40000000 // Maximum for ILI9341 53 | 54 | #define SPI_READ_FREQUENCY 6000000 // 6 MHz is the maximum SPI read speed for the ST7789V 55 | 56 | #define SPI_TOUCH_FREQUENCY 2500000 57 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/RM68120_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | // RM68120_DRIVER 4 | 5 | #define TFT_WIDTH 480 6 | #define TFT_HEIGHT 800 7 | 8 | //Set driver type common to all TBD initialisation options 9 | #ifndef RM68120_DRIVER 10 | #define RM68120_DRIVER 11 | #endif 12 | 13 | // Delay between some initialisation commands 14 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 15 | 16 | // Generic commands used by TFT_eSPI.cpp 17 | #define TFT_NOP 0x0000 18 | #define TFT_SWRST 0x0100 19 | 20 | #define TFT_CASET 0x2A00 21 | #define TFT_PASET 0x2B00 22 | #define TFT_RAMWR 0x2C00 23 | 24 | #define TFT_RAMRD 0x2E00 25 | #define TFT_IDXRD 0xDD00 // ILI9341 only, indexed control register read 26 | 27 | #define TFT_MADCTL 0x3600 28 | #define TFT_MAD_MY 0x80 29 | #define TFT_MAD_MX 0x40 30 | #define TFT_MAD_MV 0x20 31 | #define TFT_MAD_ML 0x10 32 | #define TFT_MAD_BGR 0x08 33 | #define TFT_MAD_MH 0x04 34 | #define TFT_MAD_RGB 0x00 35 | 36 | #ifdef TFT_RGB_ORDER 37 | #if (TFT_RGB_ORDER == 1) 38 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 39 | #else 40 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 41 | #endif 42 | #else 43 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 44 | #endif 45 | 46 | #define TFT_INVOFF 0x2000 47 | #define TFT_INVON 0x2100 48 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/RM68120_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | // RM68120_DRIVER 4 | 5 | #define TFT_WIDTH 480 6 | #define TFT_HEIGHT 800 7 | 8 | //Set driver type common to all TBD initialisation options 9 | #ifndef RM68120_DRIVER 10 | #define RM68120_DRIVER 11 | #endif 12 | 13 | // Delay between some initialisation commands 14 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 15 | 16 | // Generic commands used by TFT_eSPI.cpp 17 | #define TFT_NOP 0x0000 18 | #define TFT_SWRST 0x0100 19 | 20 | #define TFT_CASET 0x2A00 21 | #define TFT_PASET 0x2B00 22 | #define TFT_RAMWR 0x2C00 23 | 24 | #define TFT_RAMRD 0x2E00 25 | #define TFT_IDXRD 0xDD00 // ILI9341 only, indexed control register read 26 | 27 | #define TFT_MADCTL 0x3600 28 | #define TFT_MAD_MY 0x80 29 | #define TFT_MAD_MX 0x40 30 | #define TFT_MAD_MV 0x20 31 | #define TFT_MAD_ML 0x10 32 | #define TFT_MAD_BGR 0x08 33 | #define TFT_MAD_MH 0x04 34 | #define TFT_MAD_RGB 0x00 35 | 36 | #ifdef TFT_RGB_ORDER 37 | #if (TFT_RGB_ORDER == 1) 38 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 39 | #else 40 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 41 | #endif 42 | #else 43 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 44 | #endif 45 | 46 | #define TFT_INVOFF 0x2000 47 | #define TFT_INVON 0x2100 48 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/RM68120_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | // RM68120_DRIVER 4 | 5 | #define TFT_WIDTH 480 6 | #define TFT_HEIGHT 800 7 | 8 | //Set driver type common to all TBD initialisation options 9 | #ifndef RM68120_DRIVER 10 | #define RM68120_DRIVER 11 | #endif 12 | 13 | // Delay between some initialisation commands 14 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 15 | 16 | // Generic commands used by TFT_eSPI.cpp 17 | #define TFT_NOP 0x0000 18 | #define TFT_SWRST 0x0100 19 | 20 | #define TFT_CASET 0x2A00 21 | #define TFT_PASET 0x2B00 22 | #define TFT_RAMWR 0x2C00 23 | 24 | #define TFT_RAMRD 0x2E00 25 | #define TFT_IDXRD 0xDD00 // ILI9341 only, indexed control register read 26 | 27 | #define TFT_MADCTL 0x3600 28 | #define TFT_MAD_MY 0x80 29 | #define TFT_MAD_MX 0x40 30 | #define TFT_MAD_MV 0x20 31 | #define TFT_MAD_ML 0x10 32 | #define TFT_MAD_BGR 0x08 33 | #define TFT_MAD_MH 0x04 34 | #define TFT_MAD_RGB 0x00 35 | 36 | #ifdef TFT_RGB_ORDER 37 | #if (TFT_RGB_ORDER == 1) 38 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 39 | #else 40 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 41 | #endif 42 | #else 43 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 44 | #endif 45 | 46 | #define TFT_INVOFF 0x2000 47 | #define TFT_INVON 0x2100 48 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/ILI9225_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the ILI9225 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | switch (rotation) { 7 | case 0: 8 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 9 | writedata(0x01);writedata(0x1C); 10 | writecommand(ILI9225_ENTRY_MODE); 11 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x30); 12 | _width = _init_width; 13 | _height = _init_height; 14 | break; 15 | case 1: 16 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 17 | writedata(0x00);writedata(0x1C); 18 | writecommand(ILI9225_ENTRY_MODE); 19 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x38); 20 | _width = _init_height; 21 | _height = _init_width; 22 | break; 23 | case 2: 24 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 25 | writedata(0x02);writedata(0x1C); 26 | writecommand(ILI9225_ENTRY_MODE); 27 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x30); 28 | _width = _init_width; 29 | _height = _init_height; 30 | break; 31 | case 3: 32 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 33 | writedata(0x03);writedata(0x1C); 34 | writecommand(ILI9225_ENTRY_MODE); 35 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x38); 36 | _width = _init_height; 37 | _height = _init_width; 38 | break; 39 | } 40 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/ILI9225_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the ILI9225 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | switch (rotation) { 7 | case 0: 8 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 9 | writedata(0x01);writedata(0x1C); 10 | writecommand(ILI9225_ENTRY_MODE); 11 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x30); 12 | _width = _init_width; 13 | _height = _init_height; 14 | break; 15 | case 1: 16 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 17 | writedata(0x00);writedata(0x1C); 18 | writecommand(ILI9225_ENTRY_MODE); 19 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x38); 20 | _width = _init_height; 21 | _height = _init_width; 22 | break; 23 | case 2: 24 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 25 | writedata(0x02);writedata(0x1C); 26 | writecommand(ILI9225_ENTRY_MODE); 27 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x30); 28 | _width = _init_width; 29 | _height = _init_height; 30 | break; 31 | case 3: 32 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 33 | writedata(0x03);writedata(0x1C); 34 | writecommand(ILI9225_ENTRY_MODE); 35 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x38); 36 | _width = _init_height; 37 | _height = _init_width; 38 | break; 39 | } 40 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/ILI9225_Rotation.h: -------------------------------------------------------------------------------- 1 | 2 | // This is the command sequence that rotates the ILI9225 driver coordinate frame 3 | 4 | rotation = m % 4; // Limit the range of values to 0-3 5 | 6 | switch (rotation) { 7 | case 0: 8 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 9 | writedata(0x01);writedata(0x1C); 10 | writecommand(ILI9225_ENTRY_MODE); 11 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x30); 12 | _width = _init_width; 13 | _height = _init_height; 14 | break; 15 | case 1: 16 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 17 | writedata(0x00);writedata(0x1C); 18 | writecommand(ILI9225_ENTRY_MODE); 19 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x38); 20 | _width = _init_height; 21 | _height = _init_width; 22 | break; 23 | case 2: 24 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 25 | writedata(0x02);writedata(0x1C); 26 | writecommand(ILI9225_ENTRY_MODE); 27 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x30); 28 | _width = _init_width; 29 | _height = _init_height; 30 | break; 31 | case 3: 32 | writecommand(ILI9225_DRIVER_OUTPUT_CTRL); 33 | writedata(0x03);writedata(0x1C); 34 | writecommand(ILI9225_ENTRY_MODE); 35 | writedata(TFT_MAD_COLOR_ORDER);writedata(0x38); 36 | _width = _init_height; 37 | _height = _init_width; 38 | break; 39 | } 40 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/HX8357B_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPar.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #ifdef TFT_RGB_ORDER 43 | #if (TFT_RGB_ORDER == 1) 44 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 45 | #else 46 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 47 | #endif 48 | #else 49 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 50 | #endif 51 | 52 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 53 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/TFT_Drivers/HX8357C_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPar.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #ifdef TFT_RGB_ORDER 43 | #if (TFT_RGB_ORDER == 1) 44 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 45 | #else 46 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 47 | #endif 48 | #else 49 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 50 | #endif 51 | 52 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 53 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/Tools/bmp2array4bit/README.md: -------------------------------------------------------------------------------- 1 | ## bmp2array4bit 2 | 3 | bmp2array4bit.py reads a bmp file, and creates C (or C++) code that contains two arrays for adding images to four-bit sprites. See [Sprite_image_4bit](../../examples/Sprite/Sprite_image_4bit) for an example. 4 | 5 | It is loosely based on Spark Fun's bmp2array script, https://github.com/sparkfun/BMPtoArray/blob/master/bmp2array.py. The bmp file format is documented in https://en.wikipedia.org/wiki/BMP_file_format. 6 | 7 | You'll need python 3.6 (the original uses Python 2.7) 8 | 9 | `usage: python bmp2array4bit.py [-v] star.bmp [-o myfile.c]` 10 | 11 | Create the bmp file in Gimp (www.gimp.org) from any image as follows: 12 | 13 | * Remove the alpha channel (if it has one) 14 | Layer -> Transparency -> Remove Alpha Channel 15 | * Set the mode to indexed. 16 | Image -> Mode -> Indexed... 17 | * Select Generate optimum palette with 16 colors (max) 18 | * Export the file with a .bmp extension. Do **NOT** select options: 19 | * Run-Length Encoded 20 | * Compatibility Options: "Do not write color space information" 21 | * There are no Advanced Options available with these settings 22 | 23 | (There are other tools that will produce bmp files, and these should work provided you don't use run-length encoding or other advanced features). 24 | 25 | The first array produced is the palette for the image. 26 | The second is the image itself. 27 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/HX8357B_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPar.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #ifdef TFT_RGB_ORDER 43 | #if (TFT_RGB_ORDER == 1) 44 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 45 | #else 46 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 47 | #endif 48 | #else 49 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 50 | #endif 51 | 52 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 53 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/TFT_Drivers/HX8357C_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPar.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #ifdef TFT_RGB_ORDER 43 | #if (TFT_RGB_ORDER == 1) 44 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 45 | #else 46 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 47 | #endif 48 | #else 49 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 50 | #endif 51 | 52 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 53 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/Tools/bmp2array4bit/README.md: -------------------------------------------------------------------------------- 1 | ## bmp2array4bit 2 | 3 | bmp2array4bit.py reads a bmp file, and creates C (or C++) code that contains two arrays for adding images to four-bit sprites. See [Sprite_image_4bit](../../examples/Sprite/Sprite_image_4bit) for an example. 4 | 5 | It is loosely based on Spark Fun's bmp2array script, https://github.com/sparkfun/BMPtoArray/blob/master/bmp2array.py. The bmp file format is documented in https://en.wikipedia.org/wiki/BMP_file_format. 6 | 7 | You'll need python 3.6 (the original uses Python 2.7) 8 | 9 | `usage: python bmp2array4bit.py [-v] star.bmp [-o myfile.c]` 10 | 11 | Create the bmp file in Gimp (www.gimp.org) from any image as follows: 12 | 13 | * Remove the alpha channel (if it has one) 14 | Layer -> Transparency -> Remove Alpha Channel 15 | * Set the mode to indexed. 16 | Image -> Mode -> Indexed... 17 | * Select Generate optimum palette with 16 colors (max) 18 | * Export the file with a .bmp extension. Do **NOT** select options: 19 | * Run-Length Encoded 20 | * Compatibility Options: "Do not write color space information" 21 | * There are no Advanced Options available with these settings 22 | 23 | (There are other tools that will produce bmp files, and these should work provided you don't use run-length encoding or other advanced features). 24 | 25 | The first array produced is the palette for the image. 26 | The second is the image itself. 27 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/HX8357B_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPar.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #ifdef TFT_RGB_ORDER 43 | #if (TFT_RGB_ORDER == 1) 44 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 45 | #else 46 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 47 | #endif 48 | #else 49 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 50 | #endif 51 | 52 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 53 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/TFT_Drivers/HX8357C_Defines.h: -------------------------------------------------------------------------------- 1 | // Change the width and height if required (defined in portrait mode) 2 | // or use the constructor to over-ride defaults 3 | #define TFT_WIDTH 320 4 | #define TFT_HEIGHT 480 5 | 6 | 7 | // Delay between some initialisation commands 8 | #define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked 9 | 10 | 11 | // Generic commands used by TFT_eSPar.cpp 12 | #define TFT_NOP 0x00 13 | #define TFT_SWRST 0x01 14 | 15 | #define TFT_SLPIN 0x10 16 | #define TFT_SLPOUT 0x11 17 | 18 | #define TFT_INVOFF 0x20 19 | #define TFT_INVON 0x21 20 | 21 | #define TFT_DISPOFF 0x28 22 | #define TFT_DISPON 0x29 23 | 24 | #define TFT_CASET 0x2A 25 | #define TFT_PASET 0x2B 26 | #define TFT_RAMWR 0x2C 27 | 28 | #define TFT_RAMRD 0x2E 29 | 30 | #define TFT_MADCTL 0x36 31 | 32 | #define TFT_MAD_MY 0x80 33 | #define TFT_MAD_MX 0x40 34 | #define TFT_MAD_MV 0x20 35 | #define TFT_MAD_ML 0x10 36 | #define TFT_MAD_RGB 0x00 37 | #define TFT_MAD_BGR 0x08 38 | #define TFT_MAD_MH 0x04 39 | #define TFT_MAD_SS 0x02 40 | #define TFT_MAD_GS 0x01 41 | 42 | #ifdef TFT_RGB_ORDER 43 | #if (TFT_RGB_ORDER == 1) 44 | #define TFT_MAD_COLOR_ORDER TFT_MAD_RGB 45 | #else 46 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 47 | #endif 48 | #else 49 | #define TFT_MAD_COLOR_ORDER TFT_MAD_BGR 50 | #endif 51 | 52 | #define TFT_IDXRD 0x00 // ILI9341 only, indexed control register read 53 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/Tools/bmp2array4bit/README.md: -------------------------------------------------------------------------------- 1 | ## bmp2array4bit 2 | 3 | bmp2array4bit.py reads a bmp file, and creates C (or C++) code that contains two arrays for adding images to four-bit sprites. See [Sprite_image_4bit](../../examples/Sprite/Sprite_image_4bit) for an example. 4 | 5 | It is loosely based on Spark Fun's bmp2array script, https://github.com/sparkfun/BMPtoArray/blob/master/bmp2array.py. The bmp file format is documented in https://en.wikipedia.org/wiki/BMP_file_format. 6 | 7 | You'll need python 3.6 (the original uses Python 2.7) 8 | 9 | `usage: python bmp2array4bit.py [-v] star.bmp [-o myfile.c]` 10 | 11 | Create the bmp file in Gimp (www.gimp.org) from any image as follows: 12 | 13 | * Remove the alpha channel (if it has one) 14 | Layer -> Transparency -> Remove Alpha Channel 15 | * Set the mode to indexed. 16 | Image -> Mode -> Indexed... 17 | * Select Generate optimum palette with 16 colors (max) 18 | * Export the file with a .bmp extension. Do **NOT** select options: 19 | * Run-Length Encoded 20 | * Compatibility Options: "Do not write color space information" 21 | * There are no Advanced Options available with these settings 22 | 23 | (There are other tools that will produce bmp files, and these should work provided you don't use run-length encoding or other advanced features). 24 | 25 | The first array produced is the palette for the image. 26 | The second is the image itself. 27 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup45_TTGO_T_Watch.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 45 2 | 3 | #define ST7789_DRIVER 4 | 5 | #define TFT_WIDTH 240 6 | #define TFT_HEIGHT 240 7 | 8 | #define TFT_MISO -1 9 | #define TFT_MOSI 19 10 | #define TFT_SCLK 18 11 | #define TFT_CS 5 12 | #define TFT_DC 27 13 | 14 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 15 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 16 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 17 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 18 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 19 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 21 | #define SMOOTH_FONT 22 | 23 | // #define SPI_FREQUENCY 1000000 24 | // #define SPI_FREQUENCY 5000000 25 | // #define SPI_FREQUENCY 10000000 26 | // #define SPI_FREQUENCY 20000000 27 | // #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3 28 | #define SPI_FREQUENCY 40000000 29 | //#define SPI_FREQUENCY 80000000 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup46_GC9A01_ESP32.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 46 3 | 4 | #define GC9A01_DRIVER 5 | 6 | #define TFT_MISO 19 7 | #define TFT_MOSI 23 8 | #define TFT_SCLK 18 9 | #define TFT_CS 15 // Chip select control pin 10 | #define TFT_DC 2 // Data Command control pin 11 | #define TFT_RST 4 // Reset pin (could connect to RST pin) 12 | //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 13 | 14 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 15 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 16 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 17 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 18 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 19 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 21 | #define SMOOTH_FONT 22 | 23 | #define SPI_FREQUENCY 40000000 24 | 25 | #define SPI_READ_FREQUENCY 20000000 26 | 27 | #define SPI_TOUCH_FREQUENCY 2500000 28 | 29 | // #define SUPPORT_TRANSACTIONS -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup45_TTGO_T_Watch.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 45 2 | 3 | #define ST7789_DRIVER 4 | 5 | #define TFT_WIDTH 240 6 | #define TFT_HEIGHT 240 7 | 8 | #define TFT_MISO -1 9 | #define TFT_MOSI 19 10 | #define TFT_SCLK 18 11 | #define TFT_CS 5 12 | #define TFT_DC 27 13 | 14 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 15 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 16 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 17 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 18 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 19 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 21 | #define SMOOTH_FONT 22 | 23 | // #define SPI_FREQUENCY 1000000 24 | // #define SPI_FREQUENCY 5000000 25 | // #define SPI_FREQUENCY 10000000 26 | // #define SPI_FREQUENCY 20000000 27 | // #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3 28 | #define SPI_FREQUENCY 40000000 29 | //#define SPI_FREQUENCY 80000000 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup46_GC9A01_ESP32.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 46 3 | 4 | #define GC9A01_DRIVER 5 | 6 | #define TFT_MISO 19 7 | #define TFT_MOSI 23 8 | #define TFT_SCLK 18 9 | #define TFT_CS 15 // Chip select control pin 10 | #define TFT_DC 2 // Data Command control pin 11 | #define TFT_RST 4 // Reset pin (could connect to RST pin) 12 | //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 13 | 14 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 15 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 16 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 17 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 18 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 19 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 21 | #define SMOOTH_FONT 22 | 23 | #define SPI_FREQUENCY 40000000 24 | 25 | #define SPI_READ_FREQUENCY 20000000 26 | 27 | #define SPI_TOUCH_FREQUENCY 2500000 28 | 29 | // #define SUPPORT_TRANSACTIONS -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup45_TTGO_T_Watch.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 45 2 | 3 | #define ST7789_DRIVER 4 | 5 | #define TFT_WIDTH 240 6 | #define TFT_HEIGHT 240 7 | 8 | #define TFT_MISO -1 9 | #define TFT_MOSI 19 10 | #define TFT_SCLK 18 11 | #define TFT_CS 5 12 | #define TFT_DC 27 13 | 14 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 15 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 16 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 17 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 18 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 19 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 21 | #define SMOOTH_FONT 22 | 23 | // #define SPI_FREQUENCY 1000000 24 | // #define SPI_FREQUENCY 5000000 25 | // #define SPI_FREQUENCY 10000000 26 | // #define SPI_FREQUENCY 20000000 27 | // #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3 28 | #define SPI_FREQUENCY 40000000 29 | //#define SPI_FREQUENCY 80000000 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup46_GC9A01_ESP32.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 46 3 | 4 | #define GC9A01_DRIVER 5 | 6 | #define TFT_MISO 19 7 | #define TFT_MOSI 23 8 | #define TFT_SCLK 18 9 | #define TFT_CS 15 // Chip select control pin 10 | #define TFT_DC 2 // Data Command control pin 11 | #define TFT_RST 4 // Reset pin (could connect to RST pin) 12 | //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 13 | 14 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 15 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 16 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 17 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 18 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 19 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 21 | #define SMOOTH_FONT 22 | 23 | #define SPI_FREQUENCY 40000000 24 | 25 | #define SPI_READ_FREQUENCY 20000000 26 | 27 | #define SPI_TOUCH_FREQUENCY 2500000 28 | 29 | // #define SUPPORT_TRANSACTIONS -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup12_M5Stack_Basic_Core.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 12 3 | 4 | //Setup file for the M5Stack Basic Core 5 | 6 | #define ILI9341_DRIVER 7 | 8 | #define M5STACK 9 | 10 | #define TFT_MISO 19 11 | #define TFT_MOSI 23 12 | #define TFT_SCLK 18 13 | #define TFT_CS 14 // Chip select control pin 14 | #define TFT_DC 27 // Data Command control pin 15 | #define TFT_RST 33 // Reset pin (could connect to Arduino RESET pin) 16 | #define TFT_BL 32 // LED back-light 17 | 18 | 19 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 20 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 21 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 22 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 23 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 24 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 25 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 26 | 27 | #define SMOOTH_FONT 28 | 29 | 30 | #define SPI_FREQUENCY 27000000 31 | 32 | // Optional reduced SPI frequency for reading TFT 33 | #define SPI_READ_FREQUENCY 5000000 -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup12_M5Stack_Basic_Core.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 12 3 | 4 | //Setup file for the M5Stack Basic Core 5 | 6 | #define ILI9341_DRIVER 7 | 8 | #define M5STACK 9 | 10 | #define TFT_MISO 19 11 | #define TFT_MOSI 23 12 | #define TFT_SCLK 18 13 | #define TFT_CS 14 // Chip select control pin 14 | #define TFT_DC 27 // Data Command control pin 15 | #define TFT_RST 33 // Reset pin (could connect to Arduino RESET pin) 16 | #define TFT_BL 32 // LED back-light 17 | 18 | 19 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 20 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 21 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 22 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 23 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 24 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 25 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 26 | 27 | #define SMOOTH_FONT 28 | 29 | 30 | #define SPI_FREQUENCY 27000000 31 | 32 | // Optional reduced SPI frequency for reading TFT 33 | #define SPI_READ_FREQUENCY 5000000 -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 44 2 | 3 | #define ST7789_DRIVER 4 | 5 | #define TFT_WIDTH 240 6 | #define TFT_HEIGHT 240 7 | 8 | #define TFT_MOSI 19 9 | #define TFT_MISO 22 10 | #define TFT_SCLK 21 11 | #define TFT_CS 12 12 | #define TFT_DC 15 13 | #define TFT_RST -1 14 | #define TFT_BL 2 15 | 16 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 17 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 18 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 19 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 20 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-. 21 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 22 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 23 | 24 | #define SMOOTH_FONT 25 | 26 | // #define SPI_FREQUENCY 1000000 27 | // #define SPI_FREQUENCY 5000000 28 | // #define SPI_FREQUENCY 10000000 29 | // #define SPI_FREQUENCY 20000000 30 | // #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3 31 | #define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS 32 | // #define SUPPORT_TRANSACTIONS 33 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 44 2 | 3 | #define ST7789_DRIVER 4 | 5 | #define TFT_WIDTH 240 6 | #define TFT_HEIGHT 240 7 | 8 | #define TFT_MOSI 19 9 | #define TFT_MISO 22 10 | #define TFT_SCLK 21 11 | #define TFT_CS 12 12 | #define TFT_DC 15 13 | #define TFT_RST -1 14 | #define TFT_BL 2 15 | 16 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 17 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 18 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 19 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 20 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-. 21 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 22 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 23 | 24 | #define SMOOTH_FONT 25 | 26 | // #define SPI_FREQUENCY 1000000 27 | // #define SPI_FREQUENCY 5000000 28 | // #define SPI_FREQUENCY 10000000 29 | // #define SPI_FREQUENCY 20000000 30 | // #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3 31 | #define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS 32 | // #define SUPPORT_TRANSACTIONS 33 | -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup12_M5Stack_Basic_Core.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 12 3 | 4 | //Setup file for the M5Stack Basic Core 5 | 6 | #define ILI9341_DRIVER 7 | 8 | #define M5STACK 9 | 10 | #define TFT_MISO 19 11 | #define TFT_MOSI 23 12 | #define TFT_SCLK 18 13 | #define TFT_CS 14 // Chip select control pin 14 | #define TFT_DC 27 // Data Command control pin 15 | #define TFT_RST 33 // Reset pin (could connect to Arduino RESET pin) 16 | #define TFT_BL 32 // LED back-light 17 | 18 | 19 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 20 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 21 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 22 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 23 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 24 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 25 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 26 | 27 | #define SMOOTH_FONT 28 | 29 | 30 | #define SPI_FREQUENCY 27000000 31 | 32 | // Optional reduced SPI frequency for reading TFT 33 | #define SPI_READ_FREQUENCY 5000000 -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 44 2 | 3 | #define ST7789_DRIVER 4 | 5 | #define TFT_WIDTH 240 6 | #define TFT_HEIGHT 240 7 | 8 | #define TFT_MOSI 19 9 | #define TFT_MISO 22 10 | #define TFT_SCLK 21 11 | #define TFT_CS 12 12 | #define TFT_DC 15 13 | #define TFT_RST -1 14 | #define TFT_BL 2 15 | 16 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 17 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 18 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 19 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 20 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-. 21 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 22 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 23 | 24 | #define SMOOTH_FONT 25 | 26 | // #define SPI_FREQUENCY 1000000 27 | // #define SPI_FREQUENCY 5000000 28 | // #define SPI_FREQUENCY 10000000 29 | // #define SPI_FREQUENCY 20000000 30 | // #define SPI_FREQUENCY 27000000 // Actually sets it to 26.67MHz = 80/3 31 | #define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS 32 | // #define SUPPORT_TRANSACTIONS 33 | -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup36_RPi_touch_ST7796.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 36 3 | 4 | #define RPI_DISPLAY_TYPE 5 | #define ST7796_DRIVER 6 | 7 | 8 | #define TFT_MISO 19 9 | #define TFT_MOSI 23 10 | #define TFT_SCLK 18 11 | #define TFT_CS 15 // Chip select control pin 12 | #define TFT_DC 2 // Data Command control pin 13 | #define TFT_RST 4 // Reset pin (could connect to RST pin) 14 | //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 15 | 16 | #define TOUCH_CS 22 // Chip select pin (T_CS) of touch screen 17 | 18 | 19 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 20 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 21 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 22 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 23 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 24 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 25 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 26 | 27 | #define SMOOTH_FONT 28 | 29 | 30 | #define SPI_FREQUENCY 40000000 31 | 32 | #define SPI_TOUCH_FREQUENCY 2500000 33 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup36_RPi_touch_ST7796.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 36 3 | 4 | #define RPI_DISPLAY_TYPE 5 | #define ST7796_DRIVER 6 | 7 | 8 | #define TFT_MISO 19 9 | #define TFT_MOSI 23 10 | #define TFT_SCLK 18 11 | #define TFT_CS 15 // Chip select control pin 12 | #define TFT_DC 2 // Data Command control pin 13 | #define TFT_RST 4 // Reset pin (could connect to RST pin) 14 | //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 15 | 16 | #define TOUCH_CS 22 // Chip select pin (T_CS) of touch screen 17 | 18 | 19 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 20 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 21 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 22 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 23 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 24 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 25 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 26 | 27 | #define SMOOTH_FONT 28 | 29 | 30 | #define SPI_FREQUENCY 40000000 31 | 32 | #define SPI_TOUCH_FREQUENCY 2500000 33 | -------------------------------------------------------------------------------- /05-HTML & Images OTA/Arduino PIO/html&images_ota/lib/TFT_eSPI/User_Setups/Setup51_LilyPi_ILI9481.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 51 2 | 3 | #define ILI9481_DRIVER 4 | 5 | #define TFT_BL 12 // LED back-light control pin 6 | #define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW) 7 | 8 | #define TFT_MISO 23 9 | #define TFT_MOSI 19 10 | #define TFT_SCLK 18 11 | #define TFT_CS 5 // Chip select control pin 12 | #define TFT_DC 27 // Data Command control pin 13 | #define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 14 | 15 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 16 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 17 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 18 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 19 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 21 | //#define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT 22 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 23 | 24 | #define SMOOTH_FONT 25 | 26 | #define SPI_FREQUENCY 26666666 27 | #define SPI_READ_FREQUENCY 20000000 -------------------------------------------------------------------------------- /06-ProgressBar OTA/Arduino PIO/progressbar_ota/lib/TFT_eSPI/User_Setups/Setup51_LilyPi_ILI9481.h: -------------------------------------------------------------------------------- 1 | #define USER_SETUP_ID 51 2 | 3 | #define ILI9481_DRIVER 4 | 5 | #define TFT_BL 12 // LED back-light control pin 6 | #define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW) 7 | 8 | #define TFT_MISO 23 9 | #define TFT_MOSI 19 10 | #define TFT_SCLK 18 11 | #define TFT_CS 5 // Chip select control pin 12 | #define TFT_DC 27 // Data Command control pin 13 | #define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 14 | 15 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 16 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 17 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 18 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 19 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:-. 20 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 21 | //#define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT 22 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 23 | 24 | #define SMOOTH_FONT 25 | 26 | #define SPI_FREQUENCY 26666666 27 | #define SPI_READ_FREQUENCY 20000000 -------------------------------------------------------------------------------- /09-TTGO GSM Modem OTA/Arduino PIO/ttgo_gsm_modem_ota/lib/TFT_eSPI/User_Setups/Setup36_RPi_touch_ST7796.h: -------------------------------------------------------------------------------- 1 | // See SetupX_Template.h for all options available 2 | #define USER_SETUP_ID 36 3 | 4 | #define RPI_DISPLAY_TYPE 5 | #define ST7796_DRIVER 6 | 7 | 8 | #define TFT_MISO 19 9 | #define TFT_MOSI 23 10 | #define TFT_SCLK 18 11 | #define TFT_CS 15 // Chip select control pin 12 | #define TFT_DC 2 // Data Command control pin 13 | #define TFT_RST 4 // Reset pin (could connect to RST pin) 14 | //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST 15 | 16 | #define TOUCH_CS 22 // Chip select pin (T_CS) of touch screen 17 | 18 | 19 | #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH 20 | #define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters 21 | #define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters 22 | #define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm 23 | #define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:. 24 | #define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-. 25 | #define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts 26 | 27 | #define SMOOTH_FONT 28 | 29 | 30 | #define SPI_FREQUENCY 40000000 31 | 32 | #define SPI_TOUCH_FREQUENCY 2500000 33 | --------------------------------------------------------------------------------