Actually jump into the test mode when you tap left prog, left led, left fn.

pull/365/head
Jesse Vincent 8 years ago
parent 0ec9767232
commit 5c59ea650f

@ -21,10 +21,10 @@ blue.b=101;
void TestMode_::loopHook (bool postClear) {
if ( postClear)
return;
if (KeyboardHardware.leftHandState.all == (R1C3 | R2C1 | R2C4 | R2C7)
if (KeyboardHardware.leftHandState.all == (R0C0 | R0C6 | R3C6 )
// && KeyboardHardware.rightHandState.all == combo.rightHand
) {
loop();
run_tests();
}
}
@ -117,8 +117,10 @@ void TestMode_::test_matrix () {
}
void TestMode_::run_tests() {
Serial.println("Running tests");
test_leds();
test_matrix();
Serial.println("Done running tests");
}
TestMode_ TestMode;

@ -1,7 +1,9 @@
#pragma once
#include <Arduino.h>
#include "KeyboardioFirmware.h"
class TestMode_ {
class TestMode_ : public KeyboardioPlugin {
public:
TestMode_(void);
void begin();

Loading…
Cancel
Save