
Arduino Quick Start
Stamp-C5 Blue LED related APIs and example programs.
#define BLUE_LED_PIN 28
bool blue_ledState = false;
void setup() {
pinMode(BLUE_LED_PIN, OUTPUT);
}
void loop() {
blue_ledState = !blue_ledState;
digitalWrite(BLUE_LED_PIN, blue_ledState);
delay(1000);
}This program controls the blue LED on the device to blink at 1-second intervals, which can be used for status indication or debugging:
