
Arduino Quick Start
NanoH2 Blue LED Light related APIs and example programs.
#define BLUE_LED_PIN 4
bool blue_ledState = false;
void setup() {
Serial.begin(115200);
pinMode(BLUE_LED_PIN, OUTPUT);
}
void loop() {
blue_ledState = !blue_ledState;
digitalWrite(BLUE_LED_PIN, blue_ledState);
delay(1000);
}This program will control the blue LED on the device to blink at a 1-second interval, which can be used for status indication or debugging:
