pimoroni / python-multitouch Goto Github PK
View Code? Open in Web Editor NEWMulti-touch pure Python driver for the official 7" touchscreen display.
License: MIT License
Multi-touch pure Python driver for the official 7" touchscreen display.
License: MIT License
After latest upgrade ft5406.py raises 'RuntimeError: Unable to locate touchscreen device'
To replicate: download PiOs, update to latest version, download ft5406.py, make python file containing 'using events' test code, run file using python 3 in Thonny
error raised by line: self._f_device = io.open(self._touch_device(), 'rb', self.EVENT_SIZE)
Tested on different machines and different screens.
I've been going through the examples and it's still escaping me how to change from the pygame tslib event reading over to the ft5406.
My use is pretty simple, I just want to capture touch events (press right now but motion later) so I an pass the x,y coordinates to check for a collision with a sprite.
Do I need to change more than just adding in the for touch in ts.loop()?
I followed all the steps and installed everything.
when I run my python app I get this
$ sudo python main.py
Traceback (most recent call last):
File "main.py", line 6, in
from ft5406 import Touchscreen, TS_PRESS
File "/home/pi/ft5406.py", line 19, in
ImportError: No module named queue
Also when I run the following command
$ dmesg | grep -i ft5406
[ 3.987815] rpi-ft5406 rpi_ft5406: Probing device
[ 4.027597] input: FT5406 memory based driver as /devices/virtual/input/input2
Hello,
I'm getting an issue "ImportError: No module named gui" when trying to run the example, which modules do I need to install to get this driver working?
Rotating the 7" touchscreen by adding
display_rotate=1
lcd_rotate=1
to /boot/config.txt
causes touches to be reported in the wrong locations. Is it possible to support this condition, or at least manually edit ft5406.py? I'm not planning on switching between different screen orientations.
I'm Running IDLE 3.6.3 on Windows 10. How to Install the Remi Zip?
The check is limited right now. It would be useful to take this as a value in the call so it can be more generic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.