mrglennjones / Halloweenicorn

Pimoroni Cosmic Unicorn Halloween themed, PIR enabled scarer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Halloweenicorn πŸ’€πŸŽƒπŸ§›β€β™‚οΈπŸ‘»

Pimoroni Cosmic Unicorn Halloween themed, PIR enabled scarer.

video_demo2.mp4

What is it?

A micropython script for Pimoroni's Cosmic Unicorn that displays a randomly picked face anim from PNG spritesheet and play a sound (evil laugh) upon detection from the PIR sensor

facesxl

Dependencies

Description of files

  • pir_pngandsound.py main micropython script
  • [laughs] Laughs directory with the 4 wav files (You can change these to your own, make sure they are mono, 16-bit, 22050Hz)
  • faces.png This the PNG spritesheet of four faces 32x32 pixels per frame

Hardware requirements

pir1 | pir2

About

Pimoroni Cosmic Unicorn Halloween themed, PIR enabled scarer.


Languages

Language:Python 100.0%