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
258 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();
}
2016-09-20 01:46:03 +00:00
void LayerState_LED::setActiveLayer(const uint8_t layerId)
2016-07-18 02:03:03 +00:00
{
ptrsLEDs[activeLayer]->off();
2016-09-20 01:46:03 +00:00
activeLayer = layerId;
2016-07-18 02:03:03 +00:00
ptrsLEDs[activeLayer]->on();
}