Want to use the table but don't want a table on show this is the option for you.
Using a simple push button you can send request to the app with a predefined amount.
Example Url: http://TABLE_IP_ADDRESS:8080/api/amount?screen=api_amount&amount=AMOUNT
A custom script has been created allowing you to use a Raspberry Pi Pico. You can download the screen here.
The script allows upto 8 buttons to be controlled by the pico. Arcade buttons are recommend.
The following GPIO pins are being used per button
| Button | BUTTON GPIO | Lamp GPIO |
|---|---|---|
| 1 | 2 | 10 |
| 2 | 3 | 11 |
| 3 | 4 | 12 |
| 4 | 5 | 13 |
| 5 | 6 | 14 |
| 6 | 7 | 15 |
| 7 | 8 | 16 |
| 8 | 9 | 17 |
There is optional setup for a single rgb pixel as status led that can in pluged in to GPIO 0
Once you have download the custom script you will need to edit the config.json file. There are a things you need to need to change.
Once you have made the edits to the config.json file you will now need to copy both the config.json and main.py to the pico.
Plugin the pico in your pc using a usb cable, once connected open your file manger and copy both files.
From there you are ready to go. Just connect your buttons
| Color | Info |
|---|---|
| Blue | Booting |
| Orange | Connecting to WiFi |
| Green | Connected to WiFi |
| White | Button Pressed |
| Red | Error |
| Purple | Button Lockoup |
| Yellow | No WiFi |
| Doing | State |
|---|---|
| Show Blink | Booting |
| Fast Blink | Connecting to WiFi |
| Solid | Connected to WiFi |
| Double Flash | Button Pressed |
| Fast Blink | Error |
| Show Blink | Button Lockout |
{info} Most arcade buttons leds run at 12v and the Pico runs at 5v. You run the buttons at 5v but the leds in the buttons will be not as bright.
Wiring the pico is not the easyest. I would recomend using a breakout board with screw terminals and input power. I would recomend this board from The Pi Hut that has everything you need. Pi Hut Board
When a button is pressed it will flash to show the request was made. Once the button is pressed all the leds on the buttons will turn of not allow buttons to be press for a set time (10s). This can be changed in the config.json