Giter Site home page Giter Site logo

python-multitouch's People

Contributors

gadgetoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-multitouch's Issues

After latest Pi update ft5406 driver reports RuntimeError: Unable to locate touchscreen device

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.

change pygame.event loop

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()?

ImportError: No module named queue

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

ImportError: No module named gui

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?

Support for screen rotation?

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.

Update touchscreen event name

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.