Time to port across the code from my previous "piHole" project, so we can send text-to-speech messages to the VoiceBox speaker. The code is pretty much unchanged from the old version apart from stealing Ashok's sysinfo style sheets for a consistent look ...
...and modifying the GPIO page to control VoiceBox peripherals.
A few notes on the GPIO controls:
- the AIY Voice software will reset the button light almost as soon as it's set (triggered by piHole text-to-speech announcing what it's done).
- the Nokia 5110 display backlight may use inverse logic (low=on), depending on your supplier.
To install, unzip piHole.zip to /home/pi/Python, then:
sudo cp /home/pi/Python/piHole/piHole.service /lib/systemd/system
sudo chmod 644 /lib/systemd/system/piHole.service
sudo systemctl daemon-reload
sudo systemctl enable piHole.service
Browse to <your-pi's-address>:9012 to test.
*** DON'T WIRE UP THE NOKIA DISPLAY UNTIL YOU'VE READ THE SECTION ON WIRING! ***
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.