Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eveld/ddr-raspberry-input
https://github.com/eveld/ddr-raspberry-input
Last synced: about 22 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/eveld/ddr-raspberry-input
- Owner: eveld
- Created: 2019-09-05T15:06:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T04:31:45.000Z (over 5 years ago)
- Last Synced: 2024-11-05T11:36:04.778Z (about 2 months ago)
- Language: Python
- Size: 11.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Install dependencies.
```
sudo pip3 install python-uinput gpiozero flask flask_restful rpi_ws281x adafruit-circuitpython-neopixel Adafruit-Blinka
```Run in separate windows.
Key server waits for messages and then triggers a key-press.
```
sudo python3 key-server.py
```Led server waits for messages and then turns leds on or off.
```
sudo python3 led-server.py
```Button server waits for gpio input and then sends a message to the key-server.
```
sudo python3 button-server.py
``````
laptop raspberry pikey-server | <--- -XPOST /touch/nomad --- | button-server | <--- press nomad --- [ trigger ]
:9090 | | |
| | | |
| | | |
"q" | | |
| | | |
v | | |
game | ---- -XPOST /note/nomad ---> | led-server | --- turn nomad on ---> [ leds ]
| | :9090 |
```# Pins
Trigger data on GPIO 23,24,25,12,16,20 (see raspberry pi bottom for colors) yellow,black,green - green,red,blue
Trigger ground on GPIO6Led data on GPIO18
Led ground on G14