Jump to content

RED_LED and GREEN_LED work opposite

Recommended Posts


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);
  digitalWrite(LED, LOW); 

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,

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.

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