Hi everyone
This is my first full scale project with neopixel rings, I made the code work with the buttoncycler example for 1 button and one ring. I have 7 neopixel rings in my final project with 7 buttons each for each of the neo pixel. I want each neo pixel to respond with the same code when the subsequent button linked with that neo pixel is connected. Here is the code I modified for the buttoncycler example formy 7 set. but the code is having errors and I am unable to understand why. COULD SOMEONE PLEASE HELP ME understand and correct the error. checked the annotations and opening and closing brackets. doesnt seem like that is the problem but the arduino says, some code lines are not declared,
ERROR MESSAGE - In function 'void startShow(int)':
buttoncyclermultiples:238: error: 'colorWipe' was not declared in this scope
case 0: colorWipe(strip1.Color(7, 0, 0, 0),50); // Black/off
^
buttoncyclermultiples:312: error: 'theaterChase' was not declared in this scope
case 4: theaterChase(strip1.Color(7, 127, 127, 127), 50); // White
^
buttoncyclermultiples:362: error: 'rainbow' was not declared in this scope
case 7: rainbow(20);
^
buttoncyclermultiples:364: error: 'rainbowCycle' was not declared in this scope
case 8: rainbowCycle(20);
^
buttoncyclermultiples:366: error: 'theaterChaseRainbow' was not declared in this scope
case 9: theaterChaseRainbow(50);
^
buttoncyclermultiples:374: error: a function-definition is not allowed here before '{' token
void colorWipe(uint32_t c, uint8_t wait) {
^
buttoncyclermultiples:863: error: expected '}' at end of input
}
^
exit status 1
'colorWipe' was not declared in this scope
MY CODE - i have attached my code as a file as it says , this message exceeds maximum limit.
I am a newbie in coding , please excuse if there are silly errors
Thank you
buttoncyclermultiples.ino (24 KB)