Home > Hardware testing, Launchpad and Energia > Stellaris LaunchPad and Energia

Stellaris LaunchPad and Energia

Here is the Stellaris LM4F120 LaunchPad from Texas Instruments.

StellarisLP_06
This is a test of the ARM based development board using  Energia (Arduino-Like development environment).
The Blink example of the Arduino IDE was adapted to blink the RGB LED in the Stellaris:
RGB= RED-GREEN-BLUE

The code used (the sketch):

/* Blink3LEDS.ino
  Arduining.com / DIC 2012
  Sketch to turn on the LEDs of The Stellaris LaunchPad in sequence.
  Each led (RED, GREEN and BLUE) are turned on for one second and then off for
  another second repeatedly.
 */

void setup() {                
  // initialize the pins as digital outputs.
  pinMode(RED_LED, OUTPUT); 
  pinMode(GREEN_LED, OUTPUT); 
  pinMode(BLUE_LED, OUTPUT);
  
}

void loop() {
  digitalWrite(RED_LED, HIGH);    // set the Red LED on
  delay(1000);                    // wait a second
  digitalWrite(RED_LED, LOW);     // set the Red LED off
  delay(1000);                    // wait a second
  
  digitalWrite(GREEN_LED, HIGH);  // set the Green LED on
  delay(1000);                    // wait a second
  digitalWrite(GREEN_LED, LOW);   // set the Green LED off
  delay(1000);                    // wait a second
  
  digitalWrite(BLUE_LED, HIGH);   // set the Blue LED on
  delay(1000);                    // wait a second
  digitalWrite(BLUE_LED, LOW);    // set the Blue LED off
  delay(1000);                    // wait a second
}

See the Video on YouTube:

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: