Commit a68f5b32 authored by Eric Duminil's avatar Eric Duminil
Browse files

Doc

parent 16097a29
Pipeline #5853 passed with stage
in 2 minutes and 24 seconds
...@@ -157,7 +157,6 @@ ...@@ -157,7 +157,6 @@
// WARNING: If AMPEL_LORAWAN is true, you need to modify the 3 following constants // 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.
// 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. // 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. // You can copy the string from TheThingsNetwork as-is, without reversing the bytes.
......
...@@ -151,7 +151,7 @@ namespace led_effects { ...@@ -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) { void showWaitingLED(uint32_t color) {
using namespace config; using namespace config;
delay(80); delay(80);
...@@ -168,9 +168,9 @@ namespace led_effects { ...@@ -168,9 +168,9 @@ namespace led_effects {
kitt_offset++; kitt_offset++;
} }
// Start K.I.T.T. led effect. Red color as default. // 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. // 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. // Takes approximately 1s for each direction.
void showKITTWheel(uint32_t color, uint16_t duration_s) { void showKITTWheel(uint32_t color, uint16_t duration_s) {
pixels.setBrightness(config::max_brightness); pixels.setBrightness(config::max_brightness);
for (int i = 0; i < duration_s * config::led_count; ++i) { for (int i = 0; i < duration_s * config::led_count; ++i) {
......
...@@ -185,9 +185,9 @@ namespace mqtt { ...@@ -185,9 +185,9 @@ namespace mqtt {
led_effects::showKITTWheel(color::green, 1); 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. // 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. // 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". // The sensor will send the info to "CO2sensors/ESP123456/info".
void sendInfoAboutLocalNetwork() { void sendInfoAboutLocalNetwork() {
char info_topic[60]; // Should be enough for "CO2sensors/ESP123456/info" char info_topic[60]; // Should be enough for "CO2sensors/ESP123456/info"
snprintf(info_topic, sizeof(info_topic), "%s/info", publish_topic); snprintf(info_topic, sizeof(info_topic), "%s/info", publish_topic);
......
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