Commit 24443b0a authored by Eric Duminil's avatar Eric Duminil
Browse files

Night mode command

parent 3362af87
......@@ -81,7 +81,6 @@ namespace sensor {
sensor_console::defineCommand("reset", []() {
ESP.restart();
}, " (Restarts the sensor)");
sensor_console::defineCommand("night_mode", led_effects::toggleNightMode, " (Toggles night mode on/off)");
}
//NOTE: should timer deviation be used to adjust measurement_timestep?
......
......@@ -74,6 +74,7 @@ namespace led_effects {
pixels.begin();
pixels.setBrightness(config::max_brightness);
LEDsOff();
sensor_console::defineCommand("night_mode", toggleNightMode, " (Toggles night mode on/off)");
}
void toggleNightMode() {
......
......@@ -2,6 +2,7 @@
#define LED_EFFECTS_H_INCLUDED
#include <Arduino.h>
#include "config.h"
#include "sensor_console.h"
// Adafruit NeoPixel (Arduino library for controlling single-wire-based LED pixels and strip)
// https://github.com/adafruit/Adafruit_NeoPixel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment