// This header file contains a list of user setup files and defines which one the // compiler uses when the IDE performs a Verify/Compile or Upload. // // Users can create configurations for different Espressif boards and TFT displays. // 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 // changes being needed. It also improves the portability of users sketches to other // hardware configurations and compatible libraries. // // Create a shortcut to this file on your desktop to permit quick access for editing. // Re-compile and upload after making and saving any changes to this file. // Customised User_Setup files are stored in the "User_Setups" folder. #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. #include // Default setup is root library folder //#include // Setup file configured for my ILI9341 //#include // Setup file configured for my ST7735 //#include // Setup file configured for my ILI9163 //#include // Setup file configured for my S6D02A1 //#include // Setup file configured for my stock RPi TFT //#include // Setup file configured for my modified RPi TFT //#include // Setup file configured for my ST7735 128x128 display //#include // Setup file configured for my ILI9163 128x128 display //#include // Setup file configured for my ST7735 //#include // Setup file configured for my stock RPi TFT with touch //#include // Setup file configured for my stock RPi TFT with touch //#include // Setup file for the ESP32 based M5Stack //#include //#include // Setup file template for copying/editting #endif // USER_SETUP_LOADED ///////////////////////////////////////////////////////////////////////////////////// // // // DON'T TINKER WITH ANY OF THE FOLLOWING LINES, THESE ADD THE TFT DRIVERS // // AND ESP8266 PIN DEFINITONS THEY ARE HERE FOR BODMER'S CONVENIENCE! // // // ///////////////////////////////////////////////////////////////////////////////////// // Load the right driver definition - do not tinker here ! #if defined (ILI9341_DRIVER) #include #elif defined (ST7735_DRIVER) #include #elif defined (ILI9163_DRIVER) #include #elif defined (S6D02A1_DRIVER) #include #elif defined (RPI_ILI9486_DRIVER) #include #endif // These are the pins for all ESP8266 boards #define PIN_D0 16 #define PIN_D1 5 #define PIN_D2 4 #define PIN_D3 0 #define PIN_D4 2 #define PIN_D5 14 #define PIN_D6 12 #define PIN_D7 13 #define PIN_D8 15 #define PIN_D9 3 #define PIN_D10 1 #define PIN_MOSI 8 #define PIN_MISO 7 #define PIN_SCLK 6 #define PIN_HWCS 0 #define PIN_D11 9 #define PIN_D12 10