diff --git a/src/Kaleidoscope-Model01-TestMode.cpp b/src/Kaleidoscope-Model01-TestMode.cpp index 01c96e54..68f13c1f 100644 --- a/src/Kaleidoscope-Model01-TestMode.cpp +++ b/src/Kaleidoscope-Model01-TestMode.cpp @@ -1,7 +1,8 @@ #include "Kaleidoscope.h" #include "Kaleidoscope-Model01-TestMode.h" #include "Kaleidoscope-LEDEffect-Rainbow.h" - +#include +#include cRGB red; cRGB blue; cRGB green; @@ -110,8 +111,15 @@ void TestMode_::test_matrix() { } } +void TestMode_::toggle_programming_leds_on() { + PORTD |= (1<<5); + PORTB |= (1<<0); +} + void TestMode_::run_tests() { // Serial.println("Running tests"); + toggle_programming_leds_on(); + test_leds(); test_matrix(); // Serial.println("Done running tests"); diff --git a/src/Kaleidoscope-Model01-TestMode.h b/src/Kaleidoscope-Model01-TestMode.h index f9a0fb02..95a3275e 100644 --- a/src/Kaleidoscope-Model01-TestMode.h +++ b/src/Kaleidoscope-Model01-TestMode.h @@ -14,6 +14,7 @@ class TestMode_ : public KaleidoscopePlugin { static void run_tests(); static void test_leds(); static void test_matrix(); + static void toggle_programming_leds_on(); static void wait_for_keypress(); static void loopHook(bool postClear); static void set_leds(uint8_t r, uint8_t g, uint8_t b);