Jump to content
43oh

Recommended Posts

/*
  Blink
 The basic Energia example.
 Turns on an LED on for one second, then off for one second, repeatedly.
 Pin 2 has an LED connected on MSP430 boards, has a name 'RED_LED' in the code.
 
 Hardware Required:
 * MSP-EXP430G2 LaunchPad
 
 This example code is in the public domain.
 */

// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(P2_2, OUTPUT); 
}

// the loop routine runs over and over again forever:
void loop() {
   digitalWrite(P2_2, HIGH);  
   // turn the LED on (HIGH is the voltage level)
}
 

this is my code

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...