https://github.com/danesparza/circuitplaygroundfire
:jack_o_lantern: Arduino sketch to create spooky 'fire' effect for Adafruit Circuit Playground using the onboard neopixels
https://github.com/danesparza/circuitplaygroundfire
adafruit arduino circuit-playground electronics fire halloween led leds multiple-neopixels neopixels
Last synced: 26 days ago
JSON representation
:jack_o_lantern: Arduino sketch to create spooky 'fire' effect for Adafruit Circuit Playground using the onboard neopixels
- Host: GitHub
- URL: https://github.com/danesparza/circuitplaygroundfire
- Owner: danesparza
- License: mit
- Created: 2019-11-22T00:36:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T12:18:17.000Z (over 4 years ago)
- Last Synced: 2025-03-17T20:15:10.738Z (about 1 year ago)
- Topics: adafruit, arduino, circuit-playground, electronics, fire, halloween, led, leds, multiple-neopixels, neopixels
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CircuitPlaygroundFire
Spooky fire effect for Adafruit Circuit Playground
I have tested this with an [Adafruit Circuit Playground Express](https://www.adafruit.com/product/3333)
I recommending powering this with a USB [battery charger](http://www.amazon.com/Anker-Generation-Astro-mini-Lipstick-Sized/dp/B005X1Y7I2) 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:
```cpp
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

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).