I am designing code to control 2 light strips(cold white and warm white) with pushbuttons and an LCD (Using PT6961, link to the library can be found here). When adding the debouncing code to it everything broke...As always(at least for me) the help dialog is useless.
Here is my code:
The error message:
Arduino: 1.8.9 (Mac OS X), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"
/Users/user/Desktop/led_controller/led_controller.ino: In function 'void loop()':
led_controller:112:37: error: 'cold_white_pwm_increase' was not declared in this scope
cold_white_pwm_increase(); //Goto function
^
led_controller:127:37: error: 'warm_white_pwm_increase' was not declared in this scope
warm_white_pwm_increase();
^
led_controller:142:37: error: 'cold_white_pwm_decrease' was not declared in this scope
cold_white_pwm_decrease();
^
led_controller:157:37: error: 'warm_white_pwm_decrease' was not declared in this scope
warm_white_pwm_decrease();
^
led_controller:172:26: error: 'all_increase' was not declared in this scope
all_increase();
^
led_controller:187:26: error: 'all_decrease' was not declared in this scope
all_decrease();
^
led_controller:194:32: error: a function-definition is not allowed here before '{' token
void cold_white_pwm_increase() {
^
led_controller:339:1: error: expected '}' at end of input
}
^
exit status 1
'cold_white_pwm_increase' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I know it is really simple to debug this, but I'm unable to...