Closed inonoob closed 3 years ago
this is a great idea. Though I suspect that relatively few people will go as far as soldering a button into place. You don't know how many times I've wished that the raspberry pi had a few buttons. Heck, it would be nice if someone built a raspberry pi case with a header that attaches a couple of buttons (but I've yet to see one to my liking).
Maybe we should also consider having a configuration file instead or in addition to the command line options? If we do that we could add another script that inspects the peripherals that you have connected and generates a config file. We could then allow users to run this script via the web interface or maybe even just have it run when the pi boots up. What do you think?
Hey @flynch
I just order a HAT board with an OLED and the TFT version with buttons. Waveshare TFT/OLED
So we don't need to sold anything and we can use the joystick and the 3 buttons for the project. Additionally the TFT/OLED can be used to display information and status.
I think I have one of those hats - the issue that I had with them is that I couldn't find a good case - or 3d print for a case that had reasonable buttons.
I like the pi zeroU and the case that c4labs make for it - https://www.amazon.com/C4Labs-Zebra-Zero4U-Case-Raspberry/dp/B07V2KC86N/ref=sr_1_1
let me know if you come across a good case that works with the display / buttons
First test with new lib looks promising for the oled display. The button function must be done separately.
https://github.com/rm-hull/luma.oled
Testing for the TFT version pending. But this lib might be a good choose for it. https://github.com/juj/fbcp-ili9341
Close as with release v1.1.0 the 1.3inch Oled is available with buttons
Idea:
Have the Raspberry pi, auto-sense which setup to pick based on the plugged in USB dongles.
Solder a push button on the Raspberry pi's GPIO. if the button is push "on", a new python script should do the following:
Pseudo code:
while True:
Check if push button is True, if yes:
waterrowerthreads -i s4 -b -a
waterrowerthreads -i s4 -b
waterrowerthreads -i sr -b -a
waterrowerthreads -i s4 -b
This code should run in a separate script. which then invokes the pirowflo script