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