Jump to content
TlaunchPad

RED_LED and GREEN_LED work opposite

Recommended Posts

Hello,

I'm a newbie and was trying example codes using MSP-EXP430G2ET.

Soon I noticed RED_LED and GREEN_LED work opposite against codes. Is this common or I have wrong setting?

For example, when I run Blink code as follow,

#define LED RED_LED
void setup() {  
  pinMode(LED, OUTPUT);     
}
void loop() {
  digitalWrite(LED, HIGH);
  delay(1000);               
  digitalWrite(LED, LOW); 
  delay(1000);               
}

the MSP430 blinks green led instead of red led.

I went over the user's guide of MSP 430 but couldn't find description about RED_LED or GREEN_LED so your help is appreciated.

The IDE is Energia version 1.8.7E21 and it's running on Windows 10.

 

Thank you,

Share this post


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...