This code is based on the hardware outlined in: http://learn.adafruit.com/trinket-slash-gemma-space-invader-pendant/overview