From 9ef9a590dab5a31e6b6415398434587a15391d9f Mon Sep 17 00:00:00 2001 From: Gregg Date: Sat, 7 Jan 2023 14:28:50 -0600 Subject: [PATCH] Added homeSpan.setStatusDevice() Allows any Blinkable class to be used as the Status LED --- src/HomeSpan.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HomeSpan.h b/src/HomeSpan.h index 7a34337..5d76818 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -298,7 +298,9 @@ class Span{ void setStatusPixel(uint8_t pin,float h=0,float s=100,float v=100){ // sets Status Device to an RGB Pixel on specified pin statusDevice=((new Pixel(pin))->setOnColor(Pixel::HSV(h,s,v))); - } + } + + void setStatusDevice(Blinkable *sDev){statusDevice=sDev;} void setApSSID(const char *ssid){network.apSSID=ssid;} // sets Access Point SSID void setApPassword(const char *pwd){network.apPassword=pwd;} // sets Access Point Password