10 #include <Adafruit_STMPE610.h> 31 #define REDBUTTON_X FRAME_X 32 #define REDBUTTON_Y FRAME_Y 33 #define REDBUTTON_W (FRAME_W/2) 34 #define REDBUTTON_H FRAME_H 36 #define GREENBUTTON_X (REDBUTTON_X + REDBUTTON_W) 37 #define GREENBUTTON_Y FRAME_Y 38 #define GREENBUTTON_W (FRAME_W/2) 39 #define GREENBUTTON_H FRAME_H 76 Serial.println(
"Unable to start touchscreen.");
80 Serial.println(
"Touchscreen started.");
92 if (!
ts.bufferEmpty())
109 Serial.println(
"Red btn hit");
120 Serial.println(
"Green btn hit");
virtual void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
int16_t height(void) const
void setCursor(int16_t x, int16_t y)
int16_t width(void) const
void setTextColor(uint16_t c)
void setRotation(uint8_t r)
void fillScreen(uint16_t color)
void setTextSize(uint8_t s)
void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)