Replies: 1 comment
-
I figured out how to build the data structure from cpp.com for : Where the LED state variables are integers defined and set elsewhere per the blink algorithms. Seems to work, but needs a few tweaks for how the NinaWifi accepts LED color states on the analogWrite versus how the HALight::RGBColor structure wants to accept the LED color states. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to back my way into creating an RGB light using HALight for the Arduino Nano RP2040 Connect. I use the WifiNina RGB LED to give a current status of the Nano to Home Assistant connection. For example,
When I do this call:
nanoRGB.setRGBColor( "255,255,0", true ); // publish RBG color
I receive the following compile error in Arduino IDE 2.1.1.:
error: no matching function for call to 'HALight::setRGBColor(const char [10], bool)'
When I go to read through the constructor/definition void HALight::RGBColor::fromBuffer(const uint8_t* data, const uint16_t length) I don't know what to do exactly.
How does one "fake" (that is within the C/C++ Arduino code) an MQTT command from Home Assistant into the HALight::setRGBColor so that the Arduino Nano RP2040 Connect's WifiNina RGB LED color reports back to Home Assistant?
Beta Was this translation helpful? Give feedback.
All reactions