The screen is hooked up in 8-bit-parallel mode.
I changed some of the pins because I did not understand the instructions, plus the tutorial claims this works anyway. The parts changed are below. These are taken from the paint example sketch.
Code: Select all
#define YP A3 // must be an analog pin, use "An" notation!
#define XM A2 // must be an analog pin, use "An" notation!
//#define YM 9 // can be a digital pin
//#define XP 8 // can be a digital pin
#define YM 37 // this is changed
#define XP 36 // this is changed
Code: Select all
//#define LCD_CS A3
//#define LCD_CD A2
//#define LCD_WR A1
//#define LCD_RD A0
#define LCD_WR 33 // these are pins I changed the screen controls to
#define LCD_RD 32 // to get the digital control pins
#define LCD_CS 35 // off the analog pins, which are needed for the touch screen input ,,,,, I think?
#define LCD_CD 34 //
In the Adafruit tutorial, when connecting the screen for display only----the screen control pins use A2 and A3.
Later on when connecting the touch screen jumpers, the screen touch controller also uses A2 and A3.....
Are there supposed to be two screen pins connected to both A2 and two more screen pins connected to A3? I did not try that as I had not seen that done before.
I can compile and upload the graphics display sketch and it runs normally. It is only the touch screen sketches that do not work. All I get is a white screen.
The only serial message I get is:
Code: Select all
Paint!
Unknown LCD driver chip: 8357