Search found 11 matches

by Jerremy09
Thu Dec 05, 2019 9:04 am
Forum: Programs, Libraries and Tools
Topic: PIN - Interup Handler - return Value
Replies: 3
Views: 134

Re: PIN - Interup Handler - return Value

Hi Roberthh, thank you for answer. I dont know if I can use it because that variable is already used in boot.py, then reuse in main.py (there cannot be definition just use) so I dont know if I can provide this variable into sub-Function called by IRQ. Nevertheless I think I found solution. I created...
by Jerremy09
Wed Dec 04, 2019 11:47 am
Forum: Programs, Libraries and Tools
Topic: PIN - Interup Handler - return Value
Replies: 3
Views: 134

PIN - Interup Handler - return Value

Helllo, I would like to ask if this is even possbble. I have Lolin 2.4 TFT display connected to PIN (0) and I use it as Interup handler in the case of touch (XPT2046 modul). Once Micropython receive this interup it runs define Function. In that function I have a code to read a touch coordinates and ...
by Jerremy09
Thu Nov 21, 2019 7:39 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

Hello Roberthh,

many thanks now I receive different values for different touch in differen part of display :-).

Thank you

Jan
by Jerremy09
Thu Nov 21, 2019 1:02 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

Hmmm, why GPIO14? I thought that : IO14 - CS used by TFT display - used in ILI9341 IO12 - CS used by touch leyer of TFT display ----------------------------------------------------------------- #Setup import machine import xpt2046_syn2 import time spi = machine.SPI(1, baudrate=32000000, miso=machine...
by Jerremy09
Thu Nov 21, 2019 1:01 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

HEllo Thank you,

does it mean that IO14 should be 0?

I tested it with IO14 (1/0) and same result :-(

Roberthh - did you test the module also with another board that pyboard?

Jan
by Jerremy09
Thu Nov 21, 2019 12:38 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

Hmmm, why GPIO14? I thought that : IO14 - CS used by TFT display - used in ILI9341 IO12 - CS used by touch leyer of TFT display ----------------------------------------------------------------- #Setup import machine import xpt2046_syn2 import time spi = machine.SPI(1, baudrate=32000000, miso=machine...
by Jerremy09
Thu Nov 21, 2019 11:26 am
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

Hello Roberthh, I tested a high presure with same result (I do remember times of first touch PDA with resistive screens :-)) (nail test also didnt work and I received same values), unfortunatelly didnt helped. I tried to change TFT display (I have 2 LOLIN TFT 2.4). ----------------------------------...
by Jerremy09
Thu Nov 21, 2019 9:16 am
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

Sorry I dont know how to add picture.

Current result is "none"
After change is "(512, 128)" even if I touch or not touch the screen

Jan
by Jerremy09
Thu Nov 21, 2019 9:15 am
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

Hello Roberthh,

you are right, with previsou settings I receive "none" as result:
[img]C:\Users\CZ011845\Desktop\ts_cs_value_0.png[/img]

and if I change the value to be I receive this:
[img]C:\Users\CZ011845\Desktop\ts_cs_value_1.png[/img]
- this I receive even if I touch / nontouch the screen.

Jan
by Jerremy09
Wed Nov 20, 2019 1:48 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 705

Re: xpt2046

Hello all, I would like to ask you for help within my issue related to touch screen "Lolin TFT 2.4 " connected to "Lolin d32 pro 2.0.0". I connected it according to producer sheet (TFT cable - documentation ), but unfortunatelly Im not able to get a single touch from screen. I bet that my code is no...