Enables the button and LED on the Google AIY voicehat.
This Mycroft skill roughly follows @andlo's code outline for the excellent picroft-google-aiy-voicekit skill. It provides the same functionality but uses the gpiozero library instead of RPi.GPIO to operate the button-LED combo connected to the voicehat.
Additionally, an extended button press (> 7 seconds) forces a Linux shutdown.
The idea is to test gpiozero's ability to handle switch bounce when polling for a button press; in my experience, RPi.GPIO doesn't register hold times too well.
IoT
#Mycroft AI #Google #AIY #voicehat