blinky2.cpp

Here's a slightly 'neatened up' version of original 'blinky sketch', using a few more SFB-native calls. Just for variety, it blinks the blue portion in the SFB's RGB (Red-Green-Blue) LED.

/* Blinking the SFB Blue LED
 * -------------------------
 */

int ledPin = BODY_RGB_BLUE_PIN;

void setup()
{
  // Nothing needed: The RGB LEDs are automatically set as output pins
}

void loop()
{
  ledOn(ledPin);                // sets the LED on
  delay(1000);                  // waits for a second
  ledOff(ledPin);               // sets the LED off
  delay(1000);                  // waits for a second
}

Generated on Fri Apr 22 06:54:10 2011 for SFB by doxygen 1.5.9