Hello everyone!
I have followed this tutorial Overview | Wireless NeoPixel Controller | Adafruit Learning System
and have built the control box and wired the reciever, with success in getting it all to run ok.
However I am aiming to apply a variety of fire effects to some of the buttons as opposed to the rainbow effect pre-sets.
the fire effect is from FastLED/Fire2012.ino at master · FastLED/FastLED · GitHub
(which I have altered to create 3-4 variations)
Below is my attempt at inserting one of these fire effects to replace "Rainbow fade"
( original code: Receiver Code | Wireless NeoPixel Controller | Adafruit Learning System )
I have attached my Code
But I am recieving various errors such as:
In file included from C:\Users\Admin\Documents\arduino\Neo_pixel_reciever_fire\Neo_pixel_reciever_fire.ino:11:0:
C:\Users\Admin\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.006
pragma message "FastLED version 3.002.006"
^
C:\Users\Admin\Documents\arduino\Neo_pixel_reciever_fire\Neo_pixel_reciever_fire.ino: In function 'void ledMode(int)':
Neo_pixel_reciever_fire:289:54: error: 'Fire2012' was not declared in this scope
case 15:SATURATION=255; BRIGHTNESS=200; Fire2012(); // rainbow fade
^
C:\Users\Admin\Documents\arduino\Neo_pixel_reciever_fire\Neo_pixel_reciever_fire.ino: At global scope:
Neo_pixel_reciever_fire:346:5: error: expected unqualified-id before 'for'
for( int i = 0; i < NUM_LEDS; i++) {
^
Neo_pixel_reciever_fire:346:21: error: 'i' does not name a type
for( int i = 0; i < NUM_LEDS; i++) {
^
Neo_pixel_reciever_fire:346:35: error: 'i' does not name a type
for( int i = 0; i < NUM_LEDS; i++) {
^
Neo_pixel_reciever_fire:351:5: error: expected unqualified-id before 'for'
for( int k= NUM_LEDS - 1; k >= 2; k--) {
^
Neo_pixel_reciever_fire:351:31: error: 'k' does not name a type
for( int k= NUM_LEDS - 1; k >= 2; k--) {
^
Neo_pixel_reciever_fire:351:39: error: 'k' does not name a type
for( int k= NUM_LEDS - 1; k >= 2; k--) {
^
Neo_pixel_reciever_fire:356:5: error: expected unqualified-id before 'if'
if( random8() < SPARKING ) {
^
Neo_pixel_reciever_fire:362:5: error: expected unqualified-id before 'for'
for( int j = 0; j < NUM_LEDS; j++) {
^
Neo_pixel_reciever_fire:362:21: error: 'j' does not name a type
for( int j = 0; j < NUM_LEDS; j++) {
^
Neo_pixel_reciever_fire:362:35: error: 'j' does not name a type
for( int j = 0; j < NUM_LEDS; j++) {
^
Multiple libraries were found for "Wire.h"
Used: C:\Users\Admin\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.13\libraries\Wire
Not used: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
exit status 1
'Fire2012' was not declared in this scope
I must admit although i have played with arduino over the years with simple sketch's, I do feel this is a bit out of my comfort zone however it is for a project I am dying to get running, If anyone could please offer me some tips or point me in the right direction as to what parts of the code I need to replace / keep it would be hugely helpfull and appreciated!
Thanks in advance!
Neo_pixel_reciever_fire.ino (11 KB)