File tree Expand file tree Collapse file tree
EYESPI/Arduino/Color/EYESPI_Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828// - Check the comments in setup() later that reference various screens.
2929
3030// **** EDIT PINS TO MATCH YOUR WIRING ****
31- #define TFT_CS A1 // To display chip-select pin
32- #define TFT_RST A2 // To display reset pin
33- #define TFT_DC A3 // To display data/command pin
31+ #define TFT_CS 10 // To display chip-select pin
32+ #define TFT_RST 9 // To display reset pin
33+ #define TFT_DC 8 // To display data/command pin
3434// For the remaining pins, this code assumes display is wired to hardware SPI
3535// on the dev board's primary SPI interface. The display libraries can support
3636// secondary SPI (if present) or bitbang (software) SPI, but that's not
@@ -54,12 +54,12 @@ uint8_t rotate = 0; // Current screen orientation (0-3)
5454void setup () {
5555 // Initialize display hardware
5656#if (SCREEN_PRODUCT_ID == 5393) // 1.47" 320x172 round-rect TFT
57- #define CORNER_RADIUS 43
57+ #define CORNER_RADIUS 22
5858 display.init (172 , 320 );
5959#elif (SCREEN_PRODUCT_ID == 3787) // 1.54" 240x240 TFT
6060 display.init (240 , 240 );
6161#elif (SCREEN_PRODUCT_ID == 5206) // 1.69" 280x240 round-rect TFT
62- #define CORNER_RADIUS 22
62+ #define CORNER_RADIUS 43
6363 display.init (240 , 280 );
6464#elif (SCREEN_PRODUCT_ID == 5394) // 1.9" 320x170 TFT
6565 display.init (170 , 320 );
You can’t perform that action at this time.
0 commit comments