I am trying to use ILI9341 touch and as it is 3.3V logic , I use logic level converters.
in XPT2046.h. it uses a readad pin
''' #define XPT2046_DI DIGITAL_12 ' Data in | MISO. Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
''' #define XPT2046_DO DIGITAL_11 ' Data out | MOSI. . Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
''' #define XPT2046_SCK DIGITAL_13 ' Clock Line. . Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
'''
''' #define XPT2046_CS DIGITAL_2 ' Touch chip select line. MUST BE DEFINED.
''' #define XPT2046_IRQ ANALOG_5 ' Event line... something touched the GLCD touch sensor. MUST BE DEFINED.
''' #define XPT2046_HardwareSPI ' remove/comment out if you want to use software SPI - must use same method as GLCD
As I use a logic level converter, what do I do with #define XPT2046_IRQ ANALOG_5?
do I just take the ili9341 irq line to an a-d port?
I feel like giving up and getting a few 5V logic touch glcds...but where to buy cheap.
All the wiring does my head and is prone to mistakes and the logic level converters I got are one way not bilaterral.
edit. looked at the logic level converters and look just like this...which are bi-directional...from the ebay site. I can't remember where I got mine...somewhere in China
and bi-direction would be needed for
''' #define XPT2046_DI DIGITAL_12 ' Data in | MISO. Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
I have the ILI9341 mega328 XPT2046 demo "working".
I could not get the demo to display, just blank screen.
I knew the dispay worked so touch pins problem and disconnected
T-DO and T-DI and got a display.
To get it to respond to touch I conncted Touch-DO to MISO not MOSI as in the demo
and Touch-DI to MOSI not MISO as in the demo.
Is this an error in the demo or me?
In the demo touching clear changes displayed x,y values but need to figure out if "working"
Cheers.
The demo waits for a touch event but not getting one as the demo does not go past initial screen.
that's with demo wiring.
Tried 3 ili9341 glcds.
all work as displays but none with touch.
all have a 3.3V reg and so should work from 5V although logic is 3.3V but not using XPT2046 demo
but ok with just using graphics. Getting tedious getting touch to work with these glcds.
I am trying to use ILI9341 touch and as it is 3.3V logic , I use logic level converters.
in XPT2046.h. it uses a readad pin
''' #define XPT2046_DI DIGITAL_12 ' Data in | MISO. Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
''' #define XPT2046_DO DIGITAL_11 ' Data out | MOSI. . Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
''' #define XPT2046_SCK DIGITAL_13 ' Clock Line. . Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
'''
''' #define XPT2046_CS DIGITAL_2 ' Touch chip select line. MUST BE DEFINED.
''' #define XPT2046_IRQ ANALOG_5 ' Event line... something touched the GLCD touch sensor. MUST BE DEFINED.
''' #define XPT2046_HardwareSPI ' remove/comment out if you want to use software SPI - must use same method as GLCD
As I use a logic level converter, what do I do with #define XPT2046_IRQ ANALOG_5?
do I just take the ili9341 irq line to an a-d port?
I feel like giving up and getting a few 5V logic touch glcds...but where to buy cheap.
All the wiring does my head and is prone to mistakes and the logic level converters I got are one way not bilaterral.
edit. looked at the logic level converters and look just like this...which are bi-directional...from the ebay site. I can't remember where I got mine...somewhere in China
and bi-direction would be needed for
''' #define XPT2046_DI DIGITAL_12 ' Data in | MISO. Should be shared port the GLCD (it will be if hardware SPI is used). No essential to define as the librart will select the GLCD port
yes? ie miso
Last edit: stan cartwright 2020-09-07
I dont know what the question is.
I have the ILI9341 mega328 XPT2046 demo "working".
I could not get the demo to display, just blank screen.
I knew the dispay worked so touch pins problem and disconnected
T-DO and T-DI and got a display.
To get it to respond to touch I conncted Touch-DO to MISO not MOSI as in the demo
and Touch-DI to MOSI not MISO as in the demo.
Is this an error in the demo or me?
In the demo touching clear changes displayed x,y values but need to figure out if "working"
Cheers.
Last edit: stan cartwright 2020-09-08
The demo waits for a touch event but not getting one as the demo does not go past initial screen.
that's with demo wiring.
Tried 3 ili9341 glcds.
all work as displays but none with touch.
all have a 3.3V reg and so should work from 5V although logic is 3.3V but not using XPT2046 demo
but ok with just using graphics. Getting tedious getting touch to work with these glcds.
Last edit: stan cartwright 2020-09-08
Ping me tomorrow on Google Hangout, So, much on at the moment - mucho busy
for sure. I'm using latest rc.