Mirroring on-board RGB LED to external LED

hi Guys:
I have a question about output the on-board RGB LED status to out side(external) LED. I saw one of the post in the community, but that’s hard for me to understand. Is there anyway we can directly access the variable of on-board RGB LED? or any other solution with clear examples or instructions?

Take a look here - https://github.com/spark/firmware/pull/465

Thank you so much, but the compiler tells me RGB.attachHandler() is not the member of RGB.

@mikelo I think @kennethlimcp is referring to unreleased/development firmware.

I was referred to the following post in relation to mirroring the RGB LED to an external LED, but alas, set_rgb_led_change_handler() would not compile for me either. Once again, sounds like it is not in the current release…

Let us know if you find a solution…

Hello is there any update on this? We really need this feature.

This works for me, and has been in the docs for a while:

1 Like

Awesome it worked, but I do have a question. Is there anyway to make this work when it’s trying to connect ?

No guarantees, but you might be able to use it in combinations with this: