Skip to content

Commit 8f24151

Browse files
EYESPI: change default pins, fix corner radii
1 parent 5373f4f commit 8f24151

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

EYESPI/Arduino/Color/EYESPI_Test/EYESPI_Test.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
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)
5454
void 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);

0 commit comments

Comments
 (0)