|
|
|
@ -24,18 +24,20 @@ class Model01 {
|
|
|
|
|
cRGB get_key_color(byte row, byte col);
|
|
|
|
|
|
|
|
|
|
void scan_matrix(void);
|
|
|
|
|
void read_matrix(void);
|
|
|
|
|
void act_on_matrix_scan(void);
|
|
|
|
|
void setup();
|
|
|
|
|
void enable_high_power_leds(void);
|
|
|
|
|
void enable_scanner_power(void);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static KeyboardioScanner leftHand;
|
|
|
|
|
static KeyboardioScanner rightHand;
|
|
|
|
|
keydata_t leftHandState;
|
|
|
|
|
keydata_t rightHandState;
|
|
|
|
|
keydata_t previousLeftHandState;
|
|
|
|
|
keydata_t previousRightHandState;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
static KeyboardioScanner leftHand;
|
|
|
|
|
static KeyboardioScanner rightHand;
|
|
|
|
|
|
|
|
|
|
static constexpr uint8_t key_led_map[4][16] = {
|
|
|
|
|
{3,4,11,12,19,20,26,27, 36,37,43,44,51,52,59,60},
|
|
|
|
|
{2,5,10,13,18,21,31,28, 35,32,42,45,50,53,58,61},
|
|
|
|
|