20
20
// CONSTANTS, HEADERS and GLOBAL VARIABLES ---------------------------------
21
21
22
22
// *** EDIT THIS VALUE TO MATCH THE ADAFRUIT PRODUCT ID FOR YOUR DISPLAY: ***
23
- #define SCREEN_PRODUCT_ID 3787
23
+ #define SCREEN_PRODUCT_ID 5393
24
24
// You can find the product ID several ways:
25
25
// - "PID" accompanies each line-item on your receipt or order details page.
26
26
// - Visit adafruit.com and search for EYESPI displays. On product pages,
27
27
// PID is shown just below product title, and is at the end of URLs.
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 PIN_SERIAL2_TX // To display chip-select pin
32
- #define TFT_RST - 1 // To display reset pin
33
- #define TFT_DC PIN_SERIAL2_RX // 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
@@ -671,4 +671,4 @@ void show_canvas() {
671
671
672
672
// Because canvas object was declared locally to this function, it's freed
673
673
// automatically when the function returns; no explicit delete needed.
674
- } // END CANVAS EXAMPLE
674
+ } // END CANVAS EXAMPLE
0 commit comments