Gearchiveerd
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
2016-09-19 19:46:03 -06:00

14 regels
258 B
C++

#include "LayerState_LED.h"
void LayerState_LED::begin()
{
ptrsLEDs[getActiveLayer()]->on();
}
void LayerState_LED::setActiveLayer(const uint8_t layerId)
{
ptrsLEDs[activeLayer]->off();
activeLayer = layerId;
ptrsLEDs[activeLayer]->on();
}