Added homeSpan.setStatusDevice()

Allows any Blinkable class to be used as the Status LED
This commit is contained in:
Gregg 2023-01-07 14:28:50 -06:00
parent 56a46b5fdb
commit 9ef9a590da
1 changed files with 3 additions and 1 deletions

View File

@ -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 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))); 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 setApSSID(const char *ssid){network.apSSID=ssid;} // sets Access Point SSID
void setApPassword(const char *pwd){network.apPassword=pwd;} // sets Access Point Password void setApPassword(const char *pwd){network.apPassword=pwd;} // sets Access Point Password