An example Python3 program for the Pi Hut Xmas tree that does multiple patterns in a random order.
Needs the GPIO Zero Library
The PI Hut Xmas tree board is optionaly modified with a button between the otherwise unused GPIO3 & ground. This is to provide a clean shutdown method when used in a stand-alone mode.
If needed the button is wired between pins 5 & 6 of the GPIO connector on the tree.
Note that it can take a while for the program to spot that the shutdown button has been pushed. So hold the button in until the light sequence stops.
My first attempt at programming in Python so apologies if it is not very elegant.
An example Python3 program for the Pi Hut Xmas tree that does multiple patterns in a random order. Needs the GPIO Zero Library
The PI Hut Xmas tree board is optionaly modified with a button between the otherwise unused GPIO3 & ground. This is to provide a clean shutdown method when used in a stand-alone mode.
If needed the button is wired between pins 5 & 6 of the GPIO connector on the tree. Note that it can take a while for the program to spot that the shutdown button has been pushed. So hold the button in until the light sequence stops.
My first attempt at programming in Python so apologies if it is not very elegant.