[Linux-Biella] su raspberry keypress in python

PaulTT paultt a bilug.it
Gio 17 Gen 2019 17:00:31 CET


On 17/01/19 16:29, Leonardo wrote:
>
> ciao
>
> avrei necessita' di "sentire" quando, mentre sono in ssh, viene 
> premuto un tasto (e ovviamente riconoscerlo)
>
> praticamente mi serve per poter lavorare in SSH su un sistema remoto 
> dove c'e' un encoder che se mi trovo localmente posso smanettarci, se 
> sono lontano diventa un po' difficile
>
> quindi in parallelo all'encoder devo poter "sentire" se premo un tasto 
> (qualunque) piuttosto che un altro per simulare la rotazione a destra 
> o a sinistra
>
> ovviamente il tasto non sara' un input seguito da un CR ma 
> semplicemente la pressione di un generico tasto come avverebbe ad 
> esempio un bash con
>
> read -n 1
>
>
> qualcuno mi sa aiutare?


https://stackoverflow.com/questions/24072790/detect-key-press-in-python

xoxo by duckduckgo


-- 
It is a good day to die. But the day is not yet over.



Maggiori informazioni sulla lista Linux