Send millis & LEDS
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
#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()
|
||||
|
||||
Reference in New Issue
Block a user