Kaleidoscope
Kaleidoscope-Model01-TestMode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Arduino.h>
4 #include "Kaleidoscope.h"
5 
6 #define TEST_MODE_KEY_COMBO (R0C0 | R0C6 | R3C6)
7 
8 class TestMode_ : public KaleidoscopePlugin {
9  public:
10  TestMode_(void);
11  void begin();
12 
13  private:
14  static void run_tests();
15  static void test_leds();
16  static void testMatrix();
17  static void toggle_programming_leds_on();
18  static void waitForKeypress();
19  static void loopHook(bool postClear);
20  static void set_leds(uint8_t r, uint8_t g, uint8_t b);
21 };
22 
23 extern TestMode_ TestMode;
24 
25 Key handleKeyswitchEvent_test(Key mappedKey, byte row, byte col, uint8_t keyState);
Key handleKeyswitchEvent_test(Key mappedKey, byte row, byte col, uint8_t keyState)
TestMode_ TestMode
Definition: Kaleidoscope-Model01-TestMode.cpp:124
void begin()
Definition: Kaleidoscope-Model01-TestMode.cpp:14
Definition: Kaleidoscope-Model01-TestMode.h:8
byte byte col
Definition: TapDance.cpp:229
Definition: key_defs.h:13
TestMode_(void)
Definition: Kaleidoscope-Model01-TestMode.cpp:10
Definition: Kaleidoscope.h:40
byte row
Definition: TapDance.cpp:229
uint8_t keyState
Definition: Kaleidoscope-Macros.cpp:5