You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include "Kaleidoscope.h"
|
|
|
|
|
|
|
|
class TestMode_ : public KaleidoscopePlugin {
|
|
|
|
public:
|
|
|
|
TestMode_(void);
|
|
|
|
void begin();
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void run_tests();
|
|
|
|
static void test_leds();
|
|
|
|
static void test_matrix();
|
|
|
|
static void wait_for_keypress();
|
|
|
|
static void loopHook(bool postClear);
|
|
|
|
static void set_leds(uint8_t r, uint8_t g, uint8_t b);
|
|
|
|
};
|
|
|
|
|
|
|
|
extern TestMode_ TestMode;
|
|
|
|
|
|
|
|
Key handle_keyswitch_event_test(Key mappedKey, byte row, byte col, uint8_t keyState);
|