Funny little project for my own amusement. If everything goes well, this should work very similar to a darts scorer.
This Python script is to be primarily run on a Raspberry Pi (but you can port it to other devices of course). Tests can be run on non-RPi devices, too (which can be beneficial for the application development).
There are three devices which I would like to wire together:
- MAX7219 7 segment display (8 digits wide)
- LCD module 1602A (2 rows of 16 cells)
- A very basic numeric keyboard from (Ctech, model KBN-01) (Linux assigned the device an id usb-SIGMACHIP_USB_Keyboard-event-kbd)
Prerequisites
Raspi
pip3 install --user max7219 evdev luma.led_matrix pillow
sudo apt-get install libopenjp2-7
Other (for development on non-Raspi devices)
sudo dnf install python3-devel
pip3 install --user evdev
Installation and execution
git clone https://github.com/zezulka/dart_scorer
cd dart_scorer
. bin/dart_scorer.sh