From 7f23ee129c2420a51075b4f49ec0dd8564071d6c Mon Sep 17 00:00:00 2001 From: Jaret Burkett Date: Sat, 26 Sep 2015 09:21:41 -0500 Subject: [PATCH] Fixed Touchscreen Lib Changed example to use the Touchscreen Library that has STM32 support. --- .../breakouttouchpaint/breakouttouchpaint.ino | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/STM32F1/libraries/Adafruit_ILI9341_STM/examples/breakouttouchpaint/breakouttouchpaint.ino b/STM32F1/libraries/Adafruit_ILI9341_STM/examples/breakouttouchpaint/breakouttouchpaint.ino index cd6b003..e94b49a 100644 --- a/STM32F1/libraries/Adafruit_ILI9341_STM/examples/breakouttouchpaint/breakouttouchpaint.ino +++ b/STM32F1/libraries/Adafruit_ILI9341_STM/examples/breakouttouchpaint/breakouttouchpaint.ino @@ -15,22 +15,22 @@ /** NOT FOR USE WITH THE TOUCH SHIELD, ONLY FOR THE BREAKOUT! **/ -#include // Core graphics library +#include // Core graphics library #include #include -#include "TouchScreen.h" +#include // These are the four touchscreen analog pins -#define YP A2 // must be an analog pin, use "An" notation! -#define XM A3 // must be an analog pin, use "An" notation! -#define YM 5 // can be a digital pin -#define XP 4 // can be a digital pin +#define YP PB0 // must be an analog pin +#define XM PA3 // must be an analog pin +#define YM PB7 // can be a digital pin +#define XP PC13 // can be a digital pin // This is calibration data for the raw touch data to the screen coordinates -#define TS_MINX 150 -#define TS_MINY 120 -#define TS_MAXX 920 -#define TS_MAXY 940 +#define TS_MINX 3670 +#define TS_MINY 3790 +#define TS_MAXX 640 +#define TS_MAXY 300 #define MINPRESSURE 10 #define MAXPRESSURE 1000