Skip to content

ATownsend/Big_Red_Button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Big Red Button Project

This project is used to run a fun former hydraulic pump control panel

Requirements

Python 3.x Raspberry pi 3 or greater

Run Local

pip install -r requirements.txt ./main.py

Docker

docker build ./ --label bigred docker run bigred --device /dev/i2c-1 docker run --privileged bigred

Internal Structure

  • main.py can be run for a single button, or can self reference and subprocess for each button (4 buttons)
  • Each button spawns 2 threads, one for animation and one to watch the button
  • main.py will eventually use the status reported back to it to drive system automation
graph TD
A((main.py)) -- subprocess x4 --> B(main.py --button-to-run %button1-4% --animation %animationPattern% )
B -- STDOUT:Toggle Status --> A
B --> C[Big_Red_Button Class]
C -- thread --> F(Button Press)
C -- thread --> G(Light Animation)
Loading

Big_Red_Button class creates 2 threads for running lights and waiting for button presses This class when called can have output set to communicate toggle status back to STDOUT for processing in main.py above

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published