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.
31 lines
620 B
31 lines
620 B
8 years ago
|
#pragma once
|
||
|
|
||
|
#include <Arduino.h>
|
||
|
#include "key_defs.h"
|
||
|
#include "plugin.h"
|
||
|
|
||
|
class Layer_ : public KeyboardioPlugin {
|
||
|
public:
|
||
|
Layer_(void);
|
||
|
|
||
|
virtual void begin(void) final;
|
||
|
|
||
|
static Key lookup(byte row, byte col);
|
||
|
static void on(uint8_t layer);
|
||
|
static void off(uint8_t layer);
|
||
|
static void move(uint8_t layer);
|
||
|
|
||
|
static uint8_t top(void);
|
||
|
static void next(void);
|
||
|
static void previous(void);
|
||
|
|
||
|
static boolean isOn(uint8_t layer);
|
||
|
|
||
|
static void defaultLayer(uint8_t layer);
|
||
|
static uint8_t defaultLayer(void);
|
||
|
|
||
|
static uint32_t getLayerState(void);
|
||
|
};
|
||
|
|
||
|
extern Layer_ Layer;
|