Skip to content

Commit 142f469

Browse files
gfx example
1 parent 5bd4e29 commit 142f469

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/GFX/GFX.ino

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ Documentation : https://github.com/thelastoutpostworkshop/FastDisplayPrototyping
1414
#define OUTPUT_CODE_ON_SERIAL // Output graphical functions on the Serial Monitor, comment it to disable
1515
#include <FastDisplayPrototyping.h>
1616

17+
// The control pins for the LCD can be assigned to any digital or
18+
// analog pins...but we'll use the analog pins as this allows us to
19+
// double up the pins with the touch screen (see the TFT paint example).
20+
#define LCD_CS A3 // Chip Select goes to Analog 3
21+
#define LCD_CD A2 // Command/Data goes to Analog 2
22+
#define LCD_WR A1 // LCD Write goes to Analog 1
23+
#define LCD_RD A0 // LCD Read goes to Analog 0
24+
25+
#define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin
26+
1727
// Initialize the display
1828
Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
1929

0 commit comments

Comments
 (0)