Add toggling on of the on-board green status LEDs.

The factory needs this to verify the hardware during build
pull/365/head
Jesse Vincent 7 years ago
parent beb159e860
commit c8586985fd

@ -1,7 +1,8 @@
#include "Kaleidoscope.h"
#include "Kaleidoscope-Model01-TestMode.h"
#include "Kaleidoscope-LEDEffect-Rainbow.h"
#include <avr/io.h>
#include <avr/wdt.h>
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");

@ -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);

Loading…
Cancel
Save