danesparza / CircuitPlaygroundFire

:jack_o_lantern: Arduino sketch to create spooky 'fire' effect for Adafruit Circuit Playground using the onboard neopixels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircuitPlaygroundFire

Spooky fire effect for Adafruit Circuit Playground

I have tested this with an Adafruit Circuit Playground Express

I recommending powering this with a USB battery charger or just plugging it into a USB wall socket adapter.

Flame colors

You can also adjust some parameters of the sketch to easily tweak the fire effect. Here, we are using an orange flame effect by default:

RGB flameColors[] = {
  { 226, 121, 35},  // Orange flame
  { 158, 8, 148},   // Purple flame 
  { 74, 150, 12},   // Green flame
  { 226, 15, 30},   // Red flame
  { 0, 128, 255}    // Blue flame
  };

Changing the flame color after it's powered on

Circuit playground buttons

You can adjust what color is used by using the two main buttons on the circut playground to cycle through the color array when it's plugged in and has power. It will always reset to the first item in the array when it's powered on (so if you want a different default color, just update the array to have your favorite color first).

About

:jack_o_lantern: Arduino sketch to create spooky 'fire' effect for Adafruit Circuit Playground using the onboard neopixels

License:MIT License


Languages

Language:C++ 100.0%