21 #include "TouchScreen.h" 24 #define YP A2 // must be an analog pin, use "An" notation! 25 #define XM A3 // must be an analog pin, use "An" notation! 26 #define YM 5 // can be a digital pin 27 #define XP 4 // can be a digital pin 35 #define MINPRESSURE 10 36 #define MAXPRESSURE 1000 58 Serial.println(F(
"Touch Paint!"));
virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
int16_t height(void) const
int16_t width(void) const
void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color)
void fillScreen(uint16_t color)
void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
#define YP
NOT FOR USE WITH THE TOUCH SHIELD, ONLY FOR THE BREAKOUT!