I have started a project where I would like to show different pieces of pixel art on the Unicorn HAT HD. Ideally I would like to have the images coming up on button pushes, and some images animated on button pushes too e.g push button get either a still or animated person/object (I have a pianoHAT that I was hoping to use as buttons), both attached to the pHAT stack.
I am struggling with the python code, I can easily modify the show_png.py script to show my own single .png pixel art image, and I can get the pianoHAT to show colour on the Unicorn HD HAT, however combining the two is proving challenging.
I am a novice python users but happy to learn, guidance would be great.
So the help I require is in two parts:
- How do I get to push a button on the pianoHAT and have an image appear on the Unicorn HD HAT
- Is it possible to animate the images on the Unicorn HD HAT with multiple single images rather than the matrix style used in snow_png.py example (lofi.py).