commit
b06b2fcc73
@ -1,17 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "Keyboardio-LEDControl.h"
|
||||
#include "Keyboardio-Macros.h"
|
||||
#include "LEDUtils.h"
|
||||
|
||||
class LEDNumlock : LEDMode {
|
||||
#define TOGGLENUMLOCK 0
|
||||
#define Key_ToggleNumlock M(TOGGLENUMLOCK)
|
||||
|
||||
class NumLock_ : LEDMode {
|
||||
public:
|
||||
LEDNumlock (uint8_t numpadIndex);
|
||||
NumLock_ (void);
|
||||
|
||||
virtual void begin (void) final;
|
||||
|
||||
virtual void update (void) final;
|
||||
virtual void init (void) final;
|
||||
|
||||
static const macro_t *toggle (byte row, byte col, uint8_t numPadLayer);
|
||||
|
||||
private:
|
||||
static void loopHook (bool postClear);
|
||||
static uint8_t previousLEDMode;
|
||||
static uint8_t us;
|
||||
static bool isActive;
|
||||
static byte row, col;
|
||||
};
|
||||
|
||||
extern NumLock_ NumLock;
|
||||
|
Loading…
Reference in new issue