|
|
@ -2,48 +2,48 @@
|
|
|
|
#include "TestMode.h"
|
|
|
|
#include "TestMode.h"
|
|
|
|
|
|
|
|
|
|
|
|
void TestMode_::TestLEDs(void) {
|
|
|
|
void TestMode_::TestLEDs(void) {
|
|
|
|
// make all LEDs dim red
|
|
|
|
// make all LEDs dim red
|
|
|
|
LEDControl.set_all_leds_to(50,0,0);
|
|
|
|
LEDControl.set_all_leds_to(50,0,0);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// make all LEDs dim blue
|
|
|
|
// make all LEDs dim blue
|
|
|
|
LEDControl.set_all_leds_to(0,50,0);
|
|
|
|
LEDControl.set_all_leds_to(0,50,0);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// make all LEDs dim green
|
|
|
|
// make all LEDs dim green
|
|
|
|
LEDControl.set_all_leds_to(0,0,50);
|
|
|
|
LEDControl.set_all_leds_to(0,0,50);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// make all LEDs dim white
|
|
|
|
// make all LEDs dim white
|
|
|
|
LEDControl.set_all_leds_to(50,50,50);
|
|
|
|
LEDControl.set_all_leds_to(50,50,50);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// make all the LEDs bright red
|
|
|
|
// make all the LEDs bright red
|
|
|
|
LEDControl.set_all_leds_to(200,0,0);
|
|
|
|
LEDControl.set_all_leds_to(200,0,0);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// make all the LEDs bright green
|
|
|
|
// make all the LEDs bright green
|
|
|
|
LEDControl.set_all_leds_to(0,200,0);
|
|
|
|
LEDControl.set_all_leds_to(0,200,0);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// make all the LEDs bright blue
|
|
|
|
// make all the LEDs bright blue
|
|
|
|
LEDControl.set_all_leds_to(0,0,200);
|
|
|
|
LEDControl.set_all_leds_to(0,0,200);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// make all the LEDs bright white (1.6A)
|
|
|
|
// make all the LEDs bright white (1.6A)
|
|
|
|
LEDControl.set_all_leds_to(160,160,160);
|
|
|
|
LEDControl.set_all_leds_to(160,160,160);
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1000);
|
|
|
|
delay(1000);
|
|
|
|
// rainbow for 10 seconds
|
|
|
|
// rainbow for 10 seconds
|
|
|
|
for(auto i=0; i<10000;i++ ) {
|
|
|
|
for(auto i=0; i<10000; i++ ) {
|
|
|
|
LEDControl.effect_rainbow_update();
|
|
|
|
LEDControl.effect_rainbow_update();
|
|
|
|
led_sync();
|
|
|
|
led_sync();
|
|
|
|
delay(1);
|
|
|
|
delay(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// set all the keys to red
|
|
|
|
// set all the keys to red
|
|
|
|
LEDControl.set_all_leds_to(50,0,0);
|
|
|
|
LEDControl.set_all_leds_to(50,0,0);
|
|
|
|
// make all LEDs dim blue
|
|
|
|
// make all LEDs dim blue
|
|
|
|
// as you hit each key, set it to blue
|
|
|
|
// as you hit each key, set it to blue
|
|
|
|
// as you hit each key a second time, set it to green
|
|
|
|
// as you hit each key a second time, set it to green
|
|
|
|
// as you hit each key a third time, set it to off
|
|
|
|
// as you hit each key a third time, set it to off
|
|
|
|
}
|
|
|
|
}
|
|
|
|