diff --git a/ampel-firmware/co2_sensor.cpp b/ampel-firmware/co2_sensor.cpp index 7110776f7ab9362e431917afa8ebc84cd8bcb653..70eff6987302aa03f7bd3105e8884cf27c70a3ea 100644 --- a/ampel-firmware/co2_sensor.cpp +++ b/ampel-firmware/co2_sensor.cpp @@ -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(); diff --git a/ampel-firmware/config.public.h b/ampel-firmware/config.public.h index 00339350cf751165bbd1c1ac46f78ef859e46ed5..6c09f44b370c61aa6ba0831fac95f58eb1436479 100644 --- a/ampel-firmware/config.public.h +++ b/ampel-firmware/config.public.h @@ -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