juj / fbcp-ili9341

A blazing fast display driver for SPI-based LCD displays for Raspberry Pi A, B, 2, 3, 4 and Zero
MIT License
1.56k stars 260 forks source link

Mimic Mouse with python using ili9341 as main display #276

Open RootCNC opened 1 year ago

RootCNC commented 1 year ago

Hi Everyone,

This might be random but I'm look for some help: I am working on a prototype CNC pendant (see below) which uses the ili9341 with a touch screen. My plan was to have python running the app, but due to the fact my touchscreen controller is I2C and not a normal input type. I was going to use the python to simulate moving the mouse for me, as it'll simplify my implementation of PyQt. the library I intended to use was called Mouse (there are others which also have the same issue) but each one of these library's I use, all see to fail and not move the mouse, either did run or didnt do anything.

I believe all the library's think there is no display connected and thus cannot move on screen display?

has anyone done anything similar? can someone point me in the right direction?

thanks in advance!

image

spacehitchhiker42 commented 1 year ago

Are you sure that you're getting input from the touchscreen? uinput has been working for me, but I'm using c++.