Run python main-script.py
The script will wait for button events (GPIO pin 16).
Runs the script mazy.py
which, using Recursive Backtracking, generates a random maze and saves it as maze.png
on disk.
printer.py
is executed next, which takes and image from disk and sends it over to the thermal printer.
Shuts down the Raspberry Pi