Commit 4cb1d3a1 authored by Käppler's avatar Käppler
Browse files

Allow to switch LED breathing off

parent 6c8ac37b
......@@ -13,6 +13,7 @@ namespace config {
const float temperature_offset = -3.0; // [K] Temperature measured by sensor is usually at least 3K too high.
#endif
const bool auto_calibrate_sensor = AUTO_CALIBRATE_SENSOR; // [true / false]
const bool led_breathing = LED_BREATHING;
}
namespace sensor {
......@@ -137,7 +138,9 @@ namespace sensor {
*/
if (co2 < 2000) {
led_effects::displayCO2color(co2);
led_effects::breathe(co2);
if (config::led_breathing) {
led_effects::breathe(co2);
}
} else {
// >= 2000: entire ring blinks red
led_effects::redAlert();
......
......@@ -64,6 +64,9 @@
# define MAX_BRIGHTNESS 255
# define MIN_BRIGHTNESS 60
// Should the LED display show a breathing effect during measurement?
# define LED_BREATHING true // [true / false]
/**
* WEB SERVER
* available at http://local_ip, with user HTTP_USER and password HTTP_PASSWORD
......
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