From f5a5636c292890ebb72424fd2d4e57480586e9f5 Mon Sep 17 00:00:00 2001 From: lexa Date: Sat, 12 Dec 2020 13:10:31 +0300 Subject: [PATCH] Send millis & LEDS --- MidRoomNLight/src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MidRoomNLight/src/main.cpp b/MidRoomNLight/src/main.cpp index ffa79a2..e6b8af2 100644 --- a/MidRoomNLight/src/main.cpp +++ b/MidRoomNLight/src/main.cpp @@ -1,6 +1,9 @@ #include #define MY_DEBUG +#define MY_DEFAULT_ERR_LED_PIN 4 // Error led pin +#define MY_DEFAULT_RX_LED_PIN 5 // Receive led pin +#define MY_DEFAULT_TX_LED_PIN 6 // the PCB, on board LED // Enable and select radio type attached #define MY_RADIO_RF24 @@ -12,7 +15,7 @@ //MyMessage msgLev(1, V_DIMMER); uint16_t lightLevel; bool lightOn = false; -MyMessage msgMillis(0, V_VAR1); +MyMessage msgMillis(1, V_VAR1); void before() { @@ -29,6 +32,7 @@ void presentation() // Send the sketch version information to the gateway and Controller sendSketchInfo("Night Light", "2.1"); present(0, S_DIMMER, "Dimmer"); + present(1, S_CUSTOM, "Service"); } void loop()