Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
4cb1d3a1
Commit
4cb1d3a1
authored
Mar 30, 2021
by
Käppler
Browse files
Allow to switch LED breathing off
parent
6c8ac37b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
4cb1d3a1
...
...
@@ -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
();
...
...
ampel-firmware/config.public.h
View file @
4cb1d3a1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment