Closed mattmofr closed 3 years ago
As I can see from here, it seems that the direction
attribute is not available anymore on DigitalOutputDevice
class.
Have you tried commenting out/removing line 38 of xpt2046.py
?
https://github.com/Luca8991/XPT2046-Python/blob/e835052333cddac4f73ec7fb3c081a33f0eb3a4a/xpt2046.py#L38
Then, rerun touch-test.py
.
Please let me know if this works.
Hi Luca,
Thank you for your help.
I commente out line 38. But also line 57 using the attribute Direction too.
I also corrected line 62 self.int_pin.when_relesed = self.int_release
by self.int_pin.when_released = self.int_release
Now system is looping without error but only printing None when uncommenting line 22 of touch-test.py
I need to look deeper in the code to see what is going but I'm missing time.
Take care,
Matt
Hi @mattmo92270, thanks to the @dgshue's #3 pull request, now it seems to work
Hi Luca8991,
I'm trying to use your driver for my TFT screen, but when running
python3 touch-test.py
I get an error from gpiozero stating :Hardware is Pi Zero W with circuit python and gpiozero installed.
Any clues ?
Thanks for your help,
Matt