Display bitmap animation on Pimoroni's fantastic Unicorn Hat.
Frame animation from Phillip Burgess / Adafruit:
https://learn.adafruit.com/trinket-slash-gemma-space-invader-pendant/animation
Written for the Pi2 Model B (should work on any Pi - i suppose - untested).
A. This: https://vine.co/v/OEFdgmg1TvX
Very well then, edit invaders.c:
switch(mask) {
case 128 : setPixelColorRGB(getPixelPosition(0,y), 166, 166, 42); break; /* yellow */
case 64 : setPixelColorRGB(getPixelPosition(1,y), 52, 128, 42); break; /* green */
case 32 : setPixelColorRGB(getPixelPosition(2,y), 52, 128, 42); break;
...
While in here look for frame duration, change my 6000 to something bigger if you want to slow it down.
git clone https://github.com/snobu/hat-invaders
cd hat-invaders
make
./invaders
You can. CTRL + C to stop.