texx00 / sandypi

The ultimate controller for sand tables
Other
27 stars 5 forks source link

Feature/buttons control #45

Closed texx00 closed 3 years ago

texx00 commented 3 years ago

Adding the possibility to control the table with some hw buttons

texx00 commented 3 years ago

Not tested on real hw yet

texx00 commented 3 years ago

Will need to use docker (#8) in order to simplify the installation for the hw part. Using the GPIO library is messing up even more with the sudo command than the standard stuff... Using sudo is necessary for some write permissions but using sudo make useless the virtual enviroment. But since the environment is created, flask will use it and will not find the libraries installed with apt-get which requires sudo i.e. the files are not installed for the environment but globally -> flask will not find the correct libraries. Added a workaround for this in the installation instructions

texx00 commented 3 years ago

The buttons are working even if the functions are limited. Will come back in a while to update this. For the moment will merge like this.

Will be better to detach the function from the click or long press into two different menues. Should also add the possibility to choose between pullup-pulldown- nopullup-nopulldown

vincentbraillard commented 3 years ago

Nice.

I will check the setting file.

May be that can help you

https://github.com/jgarff/rpi_ws281x

Le mar. 13 juil. 2021 à 19:27, Luca Tessaro @.***> a écrit :

The buttons are working even if the functions are limited. Will come back in a while to update this. For the moment will merge like this.

Will be better to detach the function from the click or long press into two different menues. Should also add the possibility to choose between pullup-pulldown- nopullup-nopulldown

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/texx00/sandypi/pull/45#issuecomment-879268987, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANLNNJ5C5CSMMEXP5XJHV5TTXRZRVANCNFSM5AEIDBUQ .