|
|
@ -12,6 +12,8 @@ TestMode_::TestMode_(void) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void TestMode_::begin(void) {
|
|
|
|
void TestMode_::begin(void) {
|
|
|
|
|
|
|
|
red.r=101;
|
|
|
|
|
|
|
|
blue.b=101;
|
|
|
|
loop_hook_use (this->loopHook);
|
|
|
|
loop_hook_use (this->loopHook);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -26,7 +28,7 @@ void TestMode_::loopHook (bool postClear) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TestMode_::TestLEDs(void) {
|
|
|
|
void TestMode_::test_leds(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);
|
|
|
|
LEDControl.led_sync();
|
|
|
|
LEDControl.led_sync();
|
|
|
@ -75,7 +77,7 @@ void TestMode_::TestLEDs(void) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void TestMode_::TestMatrix () {
|
|
|
|
void TestMode_::test_matrix () {
|
|
|
|
while(1) {
|
|
|
|
while(1) {
|
|
|
|
KeyboardHardware.read_matrix();
|
|
|
|
KeyboardHardware.read_matrix();
|
|
|
|
for (byte row = 0; row < 4; row++) {
|
|
|
|
for (byte row = 0; row < 4; row++) {
|
|
|
@ -114,15 +116,9 @@ void TestMode_::TestMatrix () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TestMode_::setup() {
|
|
|
|
void TestMode_::run_tests() {
|
|
|
|
red.r=101;
|
|
|
|
test_leds();
|
|
|
|
blue.b=101;
|
|
|
|
test_matrix();
|
|
|
|
TestLEDs();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void TestMode_::loop() {
|
|
|
|
|
|
|
|
TestMatrix();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TestMode_ TestMode;
|
|
|
|
TestMode_ TestMode;
|
|
|
|