# Bringing in a status LED

**URL:** <https://discuss.blues.com/t/bringing-in-a-status-led/1291>\
**Category:** Hardware\
**Created:** [February 27, 2023, 8:50pm UTC](https://discuss.blues.com/t/bringing-in-a-status-led/1291 "2023-02-27T20:50:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![barcesat](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@barcesat](https://discuss.blues.com/u/barcesat)\
**Post date:** [February 27, 2023, 8:50pm UTC](https://discuss.blues.com/t/bringing-in-a-status-led/1291/1 "2023-02-27T20:50:19Z")

</div>

Hi,  
I would like to brainstorm with the community.  
I’ve designed a notecarrier board that has my electronics on it and I hooked up an RGB LED to the Host MCU that I would like to use for visual debugging.  
I want to write some functions that will utilize the LED color mixes to alert or notify the device’s status.

I saw that theres a guide about the notecard’s internal LEDs and their meanings here: [https://discuss.blues.com/t/what-do-the-notecard-led-blink-patterns-mean/62](https://discuss.blues.com/t/what-do-the-notecard-led-blink-patterns-mean/62)

And I also saw that there’s the neo-monitor mode by tying an addressable LED to the notecard: [https://dev.blues.io/notecard/notecard-walkthrough/advanced-notecard-configuration/#using-neo-monitor-mode](https://dev.blues.io/notecard/notecard-walkthrough/advanced-notecard-configuration/#using-neo-monitor-mode)

But what I really have in mind is something quite like the LED patterns and colors that particle devices have:  
[https://docs.particle.io/troubleshooting/led/electron/](https://docs.particle.io/troubleshooting/led/electron/)

My question is, how could I create functions to test these things:

1. If the notecard is present at all or responding
2. If the notecard is connected to the internet
3. If the notecard is connected to notehub
4. If the notecard is in a specific error state (the antenna is ripped for example)

Does someone have an idea how to implement those using the notecard arduino library?  
Does someone have an idea for implementation for something I’ve missed?

Thanks,  
Ziv

---

<div class="post-metadata">

**Author:** ![abari](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@abari](https://discuss.blues.com/u/abari)\
**Post date:** [February 28, 2023, 2:40pm UTC](https://discuss.blues.com/t/bringing-in-a-status-led/1291/2 "2023-02-28T14:40:29Z")

</div>

You could make the requests on your MCU at an interval ie at the start of your loop, then set the LED colour based on the notecard response (or lack of). Keep in mind that it takes a minute or two to connect if its powered off so give it a chance to connect before throwing errors.

I’m not sure about the specific error states, but you can request its status and connectivity info:  
Card-status: [card Requests - API Reference - Blues Wireless Developers](https://dev.blues.io/reference/notecard-api/card-requests/#card-status) and  
Card-wireless: [card Requests - API Reference - Blues Wireless Developers](https://dev.blues.io/reference/notecard-api/card-requests/#card-wireless)
