Replies: 7 comments 12 replies
-
Hi - yes, the library defaults to use polling with XPT2046_Touchscreen at the moment. The config file you are using is the correct one. Can you confirm that the XPT2046_Touchscreen/TouchTest sketch works if you uncomment the chip-select instantiation? (This should match what GUIslice is using) You should see this line near the top of the TouchTest sketch: thanks |
Beta Was this translation helpful? Give feedback.
-
Hi Calvin, |
Beta Was this translation helpful? Give feedback.
-
... The default calibration looks ok. ...I forgot to ask about rotation: In my configuration file './configs/teensy-adagfx-ili9341-xpt2046-audio.h' I've chosen a rotation: #define GSLC_ROTATE 1 |
Beta Was this translation helpful? Give feedback.
-
Excellent — thank you for the followup. I will add the XPT2046_PS IRQ option as you have suggested. Regarding the Adafruit_GFX header from the Builder: can you confirm that you have selected the “Teensy” platform / target in the Builder project options before code generation? thanks |
Beta Was this translation helpful? Give feedback.
-
Hi Calvin, Now, I'm back at the point of looking at the touch events. As mentioned, either my x or y axis is mirrowed. Means instead of the x-value it would be (maxX - x) - value in case x is mirrowed respectively (maxY - y) - value in case the y-axis is mirrowed. I saw flags in GUIslice controlled by the config header file's #define GSLC_ROTATE 0..3. I tried all values and all failed. I wonder, how it is working, as rotation rotates the display AND touch events at the same time. In my case, the touch values are (either x or y) flipped. So it might work, if rotation is separately set for display and touch. The main problem is, that my touch events do not need a 'rotation', but a flip. Best Regards |
Beta Was this translation helpful? Give feedback.
-
@MkMunich |
Beta Was this translation helpful? Give feedback.
-
Mi Marcel -- Glad to hear that things seem like they are working. I assume the calibration has addressed your touch flip. I have now made an update to the latest GUIslice to support the To wrap things up, I thought I would see if there were any remaining changes that we needed to make based on your findings?
thanks |
Beta Was this translation helpful? Give feedback.
-
Hi,
I found GUIslice and would like to use this great software with my teensy 4.1 board.
Some days ago teensy 3 support had been added to GUIslice, so I thought it might be possible to update to the latest teensy device. I got ILI9341_t3 (// https://github.com/PaulStoffregen/ILI9341_t3) working without GUIslice using PlatformIO. So I created a new PlatformIO project starting from the GUIslice.ino file generated by GUISliceBuilder. I userd a few diffent control elements - just to test them. I struggled a while to set up platformio.ini (as I'm new to PlatformIO). Finally I got compile clean.
I found the instructions how to configure my used pins in Wiki. So I'd put the pins into ./configs/teensy-adagfx-ili9341-xpt2046-audio.h and uncommented the line in GUIslice_config.h to include that header.
BUT there is no #define for the touch's interrupt pin (this ist used in my working // https://github.com/PaulStoffregen/ILI9341_t3 project:
#define TS_CS 3
#define TS_IRQ 2 // 255 = unused
XPT2046_Touchscreen ts = XPT2046_Touchscreen(TS_CS, TS_IRQ);
Is GUIslice not using a touch interrupt, but polling instead?
To understand, how GUIslice's touch events are processed, I would apperetiate getting a hint...
Could I hook the touch events from Paul's ILI9341_t3 into GUIslice?
Best regards
MK_Munich
Beta Was this translation helpful? Give feedback.
All reactions