Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/src/LayerState_LED.cpp

14 lines
254 B
C++
Raw Normal View History

2016-07-18 02:03:03 +00:00
#include "LayerState_LED.h"
void LayerState_LED::begin()
{
ptrsLEDs[getActiveLayer()]->on();
}
void LayerState_LED::setActiveLayer(const uint8_t layer)
{
ptrsLEDs[activeLayer]->off();
activeLayer = layer;
ptrsLEDs[activeLayer]->on();
}