2017-02-22 03:07:17 +00:00
|
|
|
// This header file contains a list of user setup files and defines which one the
|
2018-02-09 21:52:26 +00:00
|
|
|
// compiler uses when the IDE performs a Verify/Compile or Upload.
|
2017-02-22 03:07:17 +00:00
|
|
|
//
|
2018-02-09 21:52:26 +00:00
|
|
|
// Users can create configurations for different Espressif boards and TFT displays.
|
2017-02-22 03:07:17 +00:00
|
|
|
// This makes selecting between hardware setups easy by "uncommenting" one line.
|
|
|
|
|
|
|
|
// The advantage of this hardware configuration method is that the examples provided
|
|
|
|
// with the library should work with different setups immediately without any other
|
2017-03-24 23:23:35 +00:00
|
|
|
// changes being needed. It also improves the portability of users sketches to other
|
2017-02-22 03:07:17 +00:00
|
|
|
// hardware configurations and compatible libraries.
|
|
|
|
//
|
2018-02-24 19:02:20 +00:00
|
|
|
// Create a shortcut to this file on your desktop to permit quick access for editing.
|
2017-02-22 03:07:17 +00:00
|
|
|
// Re-compile and upload after making and saving any changes to this file.
|
|
|
|
|
2017-02-22 10:04:26 +00:00
|
|
|
// Customised User_Setup files are stored in the "User_Setups" folder.
|
2017-02-22 03:07:17 +00:00
|
|
|
|
2018-01-08 23:19:42 +00:00
|
|
|
#ifndef USER_SETUP_LOADED // Lets PlatformIO users define user settings in
|
|
|
|
// platformio.ini, see notes in "Tools" folder.
|
|
|
|
|
|
|
|
// Only ONE line below should be uncommented. Add extra lines and files as needed.
|
|
|
|
|
2017-02-22 22:56:32 +00:00
|
|
|
#include <User_Setup.h> // Default setup is root library folder
|
2017-02-22 10:04:26 +00:00
|
|
|
|
2017-03-09 22:37:25 +00:00
|
|
|
//#include <User_Setups/Setup1_ILI9341.h> // Setup file configured for my ILI9341
|
|
|
|
//#include <User_Setups/Setup2_ST7735.h> // Setup file configured for my ST7735
|
|
|
|
//#include <User_Setups/Setup3_ILI9163.h> // Setup file configured for my ILI9163
|
|
|
|
//#include <User_Setups/Setup4_S6D02A1.h> // Setup file configured for my S6D02A1
|
2017-03-27 01:15:30 +00:00
|
|
|
//#include <User_Setups/Setup5_RPi_ILI9486.h> // Setup file configured for my stock RPi TFT
|
|
|
|
//#include <User_Setups/Setup6_RPi_Wr_ILI9486.h> // Setup file configured for my modified RPi TFT
|
2017-04-16 15:13:12 +00:00
|
|
|
//#include <User_Setups/Setup7_ST7735_128x128.h> // Setup file configured for my ST7735 128x128 display
|
2017-04-18 22:15:59 +00:00
|
|
|
//#include <User_Setups/Setup8_ILI9163_128x128.h> // Setup file configured for my ILI9163 128x128 display
|
2017-07-15 17:44:49 +00:00
|
|
|
//#include <User_Setups/Setup9_ST7735_Overlap.h> // Setup file configured for my ST7735
|
2017-10-16 23:07:49 +00:00
|
|
|
//#include <User_Setups/Setup10_RPi_touch_ILI9486.h> // Setup file configured for my stock RPi TFT with touch
|
2017-11-15 20:26:22 +00:00
|
|
|
//#include <User_Setups/Setup11_RPi_touch_ILI9486.h> // Setup file configured for my stock RPi TFT with touch
|
2018-02-08 00:45:18 +00:00
|
|
|
//#include <User_Setups/Setup12_M5Stack.h> // Setup file for the ESP32 based M5Stack
|
2018-03-10 23:08:57 +00:00
|
|
|
//#include <User_Setups/Setup13_ILI9481_Parallel.h> // Setup file for the ESP32 with parallel bus TFT
|
|
|
|
//#include <User_Setups/Setup14_ILI9341_Parallel.h> // Setup file for the ESP32 with parallel bus TFT
|
|
|
|
//#include <User_Setups/Setup15_HX8357D.h> // Setup file configured for HX8357D (untested)
|
|
|
|
//#include <User_Setups/Setup16_ILI9488_Parallel.h> // Setup file for the ESP32 with parallel bus TFT
|
2017-02-22 10:04:26 +00:00
|
|
|
|
2018-02-24 19:02:20 +00:00
|
|
|
//#include <User_Setups/Setup99.h>
|
|
|
|
|
2017-03-09 22:37:25 +00:00
|
|
|
//#include <User_Setups/SetupX_Template.h> // Setup file template for copying/editting
|
2018-01-08 23:19:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif // USER_SETUP_LOADED
|
|
|
|
|
|
|
|
|
2017-03-10 19:16:31 +00:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// //
|
|
|
|
// DON'T TINKER WITH ANY OF THE FOLLOWING LINES, THESE ADD THE TFT DRIVERS //
|
2017-04-16 15:13:12 +00:00
|
|
|
// AND ESP8266 PIN DEFINITONS THEY ARE HERE FOR BODMER'S CONVENIENCE! //
|
2017-03-10 19:16:31 +00:00
|
|
|
// //
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2017-04-14 00:04:04 +00:00
|
|
|
|
2017-03-10 19:16:31 +00:00
|
|
|
// Load the right driver definition - do not tinker here !
|
|
|
|
#if defined (ILI9341_DRIVER)
|
|
|
|
#include <TFT_Drivers/ILI9341_Defines.h>
|
|
|
|
#elif defined (ST7735_DRIVER)
|
|
|
|
#include <TFT_Drivers/ST7735_Defines.h>
|
|
|
|
#elif defined (ILI9163_DRIVER)
|
|
|
|
#include <TFT_Drivers/ILI9163_Defines.h>
|
|
|
|
#elif defined (S6D02A1_DRIVER)
|
|
|
|
#include <TFT_Drivers/S6D02A1_Defines.h>
|
2017-03-24 23:23:35 +00:00
|
|
|
#elif defined (RPI_ILI9486_DRIVER)
|
|
|
|
#include <TFT_Drivers/RPI_ILI9486_Defines.h>
|
2018-03-10 23:08:57 +00:00
|
|
|
#elif defined (ILI9481_DRIVER)
|
|
|
|
#include <TFT_Drivers/ILI9481_Defines.h>
|
|
|
|
#elif defined (ILI9488_DRIVER)
|
|
|
|
#include <TFT_Drivers/ILI9488_Defines.h>
|
|
|
|
#elif defined (HX8357D_DRIVER)
|
|
|
|
#include "TFT_Drivers/HX8357D_Defines.h"
|
2017-03-10 19:16:31 +00:00
|
|
|
#endif
|
2017-04-14 00:04:04 +00:00
|
|
|
|
2017-04-14 14:45:40 +00:00
|
|
|
// These are the pins for all ESP8266 boards
|
|
|
|
#define PIN_D0 16
|
2017-04-24 21:43:04 +00:00
|
|
|
#define PIN_D1 5
|
|
|
|
#define PIN_D2 4
|
|
|
|
#define PIN_D3 0
|
|
|
|
#define PIN_D4 2
|
2017-04-14 14:45:40 +00:00
|
|
|
#define PIN_D5 14
|
|
|
|
#define PIN_D6 12
|
|
|
|
#define PIN_D7 13
|
|
|
|
#define PIN_D8 15
|
2017-04-24 21:43:04 +00:00
|
|
|
#define PIN_D9 3
|
2017-04-14 14:45:40 +00:00
|
|
|
#define PIN_D10 1
|
2017-07-15 17:44:49 +00:00
|
|
|
|
|
|
|
#define PIN_MOSI 8
|
|
|
|
#define PIN_MISO 7
|
|
|
|
#define PIN_SCLK 6
|
|
|
|
#define PIN_HWCS 0
|
|
|
|
|
|
|
|
#define PIN_D11 9
|
2017-12-16 14:50:23 +00:00
|
|
|
#define PIN_D12 10
|