Code to operate Boron LED?

Hello,

I am using Boron development boards to construct devices that monitor environmental data. When we have cloud access, they are amazing! However, we are also working in areas where there is no available network and data are logged to a microSD card instead. One challenge is ensuring the card actually initialises when the device is deployed. I can check this when I have the Boron connected to my computer to serial monitor using a few simple lines of code:

if (!SD.begin(D5)) { //tests the SD card
Serial.println("SD initialization failed.");
} else {
Serial.println("SD initialization successful.");
}

It would be amazing to be able to know that the card is initialising when actually installing them in the field as well. Is there any way to write code that would change the Boron LED display to signal that the sd card has initialized?

Thank you!

Yes, use the LED signaling functions to override the normal status LED pattern.

got it, thank you Rick!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.