File tree Expand file tree Collapse file tree
STM32F1/libraries/Adafruit_ILI9341_STM/examples/breakouttouchpaint Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616/* * NOT FOR USE WITH THE TOUCH SHIELD, ONLY FOR THE BREAKOUT! **/
1717
18- #include < Adafruit_GFX .h> // Core graphics library
18+ #include < Adafruit_GFX_AS .h> // Core graphics library
1919#include < SPI.h>
2020#include < Adafruit_ILI9341_STM.h>
21- #include " TouchScreen.h "
21+ #include < TouchScreen_STM.h >
2222
2323// These are the four touchscreen analog pins
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
24+ #define YP PB0 // must be an analog pin
25+ #define XM PA3 // must be an analog pin
26+ #define YM PB7 // can be a digital pin
27+ #define XP PC13 // can be a digital pin
2828
2929// This is calibration data for the raw touch data to the screen coordinates
30- #define TS_MINX 150
31- #define TS_MINY 120
32- #define TS_MAXX 920
33- #define TS_MAXY 940
30+ #define TS_MINX 3670
31+ #define TS_MINY 3790
32+ #define TS_MAXX 640
33+ #define TS_MAXY 300
3434
3535#define MINPRESSURE 10
3636#define MAXPRESSURE 1000
You can’t perform that action at this time.
0 commit comments