Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
a68f5b32
Commit
a68f5b32
authored
Feb 17, 2022
by
Eric Duminil
Browse files
Doc
parent
16097a29
Pipeline
#5853
passed with stage
in 2 minutes and 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/config.public.h
View file @
a68f5b32
...
...
@@ -157,7 +157,6 @@
// WARNING: If AMPEL_LORAWAN is true, you need to modify the 3 following constants
// They are written as hexadecimal strings, and will be parsed in the correct order.
// They are written as hexadecimal strings, and will be parsed in the correct order.
// This EUI must be in big-endian format, so most-significant-byte first.
// You can copy the string from TheThingsNetwork as-is, without reversing the bytes.
...
...
ampel-firmware/led_effects.cpp
View file @
a68f5b32
...
...
@@ -151,7 +151,7 @@ namespace led_effects {
}
}
//NOTE: basically one iteration of KITT wheel
//NOTE: basically one iteration of KITT wheel
void
showWaitingLED
(
uint32_t
color
)
{
using
namespace
config
;
delay
(
80
);
...
...
@@ -168,9 +168,9 @@ namespace led_effects {
kitt_offset
++
;
}
// Start K.I.T.T. led effect. Red color as default.
// Simulate a moving LED with tail. First LED starts at 0, and moves along a triangular function. The tail follows, with decreasing brightness.
// Takes approximately 1s for each direction.
// Start K.I.T.T. led effect. Red color as default.
// Simulate a moving LED with tail. First LED starts at 0, and moves along a triangular function. The tail follows, with decreasing brightness.
// Takes approximately 1s for each direction.
void
showKITTWheel
(
uint32_t
color
,
uint16_t
duration_s
)
{
pixels
.
setBrightness
(
config
::
max_brightness
);
for
(
int
i
=
0
;
i
<
duration_s
*
config
::
led_count
;
++
i
)
{
...
...
ampel-firmware/mqtt.cpp
View file @
a68f5b32
...
...
@@ -185,9 +185,9 @@ namespace mqtt {
led_effects
::
showKITTWheel
(
color
::
green
,
1
);
}
// It can be hard to find the local IP of a sensor if it isn't connected to Serial port, and if mDNS is disabled.
// If the sensor can be reach by MQTT, it can answer with info about local_ip and ssid.
// The sensor will send the info to "CO2sensors/ESP123456/info".
// It can be hard to find the local IP of a sensor if it isn't connected to Serial port, and if mDNS is disabled.
// If the sensor can be reach by MQTT, it can answer with info about local_ip and ssid.
// The sensor will send the info to "CO2sensors/ESP123456/info".
void
sendInfoAboutLocalNetwork
()
{
char
info_topic
[
60
];
// Should be enough for "CO2sensors/ESP123456/info"
snprintf
(
info_topic
,
sizeof
(
info_topic
),
"%s/info"
,
publish_topic
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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