File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
EYESPI/Arduino/Color/EYESPI_Test Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 28
28
// - Check the comments in setup() later that reference various screens.
29
29
30
30
// **** 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
34
34
// For the remaining pins, this code assumes display is wired to hardware SPI
35
35
// on the dev board's primary SPI interface. The display libraries can support
36
36
// 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)
54
54
void setup () {
55
55
// Initialize display hardware
56
56
#if (SCREEN_PRODUCT_ID == 5393) // 1.47" 320x172 round-rect TFT
57
- #define CORNER_RADIUS 43
57
+ #define CORNER_RADIUS 22
58
58
display.init (172 , 320 );
59
59
#elif (SCREEN_PRODUCT_ID == 3787) // 1.54" 240x240 TFT
60
60
display.init (240 , 240 );
61
61
#elif (SCREEN_PRODUCT_ID == 5206) // 1.69" 280x240 round-rect TFT
62
- #define CORNER_RADIUS 22
62
+ #define CORNER_RADIUS 43
63
63
display.init (240 , 280 );
64
64
#elif (SCREEN_PRODUCT_ID == 5394) // 1.9" 320x170 TFT
65
65
display.init (170 , 320 );
You can’t perform that action at this time.
0 commit comments