LED-Off: A new "effect" that simply turns LEDs off

With the BootAnimation not functioning as a LED effect anymore, ship a
dedicated off effect.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/49/head
Gergely Nagy 8 years ago
parent 83a77bc544
commit e077ff68bc

@ -8,6 +8,7 @@
#include "generated/keymaps.h"
#include "BootAnimation.h"
#include "LED-Off.h"
#include "LED-SolidColor.h"
#include "LED-Numlock.h"
#include "LED-BreatheEffect.h"
@ -23,6 +24,7 @@ uint8_t temporary_keymap = 0;
const Key keymaps[][ROWS][COLS] PROGMEM = { KEYMAP_LIST };
static LEDOff LEDSOff;
static LEDSolidColor solidRed (100, 0, 0);
static LEDSolidColor solidOrange (100, 30, 0);
static LEDSolidColor solidYellow (90, 70, 0);

@ -0,0 +1,8 @@
#pragma once
#include "LEDControl.h"
class LEDOff : LEDMode {
public:
LEDOff (void) { LEDControl.mode_add (this); };
};
Loading…
Cancel
Save