Kaleidoscope
Kaleidoscope-Numlock.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "Kaleidoscope-Macros.h"
5 #include "LEDUtils.h"
6 
7 #define TOGGLENUMLOCK 0
8 #define Key_ToggleNumlock M(TOGGLENUMLOCK)
9 
10 class NumLock_ : public KaleidoscopePlugin {
11  public:
12  NumLock_(void);
13 
14  void begin(void) final;
15 
16  static const macro_t *toggle();
17  static void loopHook(const bool postClear);
18 
19  static uint8_t numPadLayer;
20 
21  private:
22  static byte row, col;
23 };
24 
25 extern NumLock_ NumLock;
NumLock_(void)
Definition: Kaleidoscope-Numlock.cpp:11
static uint8_t numPadLayer
Definition: Kaleidoscope-Numlock.h:19
uint8_t macro_t
Definition: MacroSteps.h:18
void begin(void) final
Definition: Kaleidoscope-Numlock.cpp:14
NumLock_ NumLock
Definition: Kaleidoscope-Numlock.cpp:56
Definition: Kaleidoscope-Numlock.h:10
Definition: Kaleidoscope.h:40
static const macro_t * toggle()
Definition: Kaleidoscope-Numlock.cpp:42
static void loopHook(const bool postClear)
Definition: Kaleidoscope-Numlock.cpp:18