-
Notifications
You must be signed in to change notification settings - Fork 0
Client Configuration
Jack Devonshire edited this page Jul 20, 2024
·
2 revisions
The client configuration is pretty simple and usually won't need to be edited.
from gpiozero import Button
# All the buttons. The key is the button reference (customisable), the value is the GPIO pin for that button
BUTTONS = {
"BTN_1": Button(14),
"BTN_2": Button(15),
"BTN_3": Button(18),
"BTN_4": Button(23),
"BTN_5": Button(24),
"BTN_6": Button(25),
"BTN_7": Button(8),
"BTN_8": Button(7),
"BTN_9": Button(12),
"BTN_10": Button(16),
"SWITCH_1": Button(17),
"SWITCH_2": Button(27),
"SWITCH_3": Button(22),
"SWITCH_4": Button(10),
"SWITCH_5": Button(9),
"PROTECTED_1": Button(5),
"PROTECTED_2": Button(6),
"PROTECTED_3": Button(13),
"PROTECTED_4": Button(19)
}If when it comes to programming the serverside configuration, you notice the buttons are all in a weird order, you can adjust this configuration to avoid having to rewire the buttons (just change the respective GPIO pin numbers).
Visit my website to see other fun projects like this!
Building
- Requirements
- Preparing The Box
- Wiring The Buttons
- GPIO Wiring
- Raspberry Pi Setup
- Configuring The Button Box
Configuration
Admin Panel Setup (Coming Soon)
Finishing Up