Jump to content
43oh

Recommended Posts

Colleagues,

 

For some reason, this code doesn't blink the LED on FraunchPad (MSP-EXP430FR5739 rev 1.1)

void setup()
{
  pinMode(P1_0, OUTPUT);
}

void loop()
{
  digitalWrite(P1_0, HIGH);
  delay(1000);
  digitalWrite(P1_0, LOW);
  delay(1000);
} 

However, if I replace `P1_0` with `RED_LED`, it does blink.

 

What could be missing?

 

- Nick

Link to post
Share on other sites

Because P1_0 isn't connected to a LED on the FraunchPad.

 

RED_LED provides a hardware abstraction layer so you can use it on the LaunchPad, FraunchPad and StellarPad.

 

Moreover, the FraunchPad features blue LEDs...

 

Have you tried the K2000 sketch? :)

 

See Blue Lights on MSP430FR5739 with Energia at http://forum.43oh.com/topic/2820-blue-lights-on-msp430fr5739-with-energia/

Link to post
Share on other sites

@@Rei Vilo  Thanks!

 

PJ.0 and P1.0 looked really similar in the schematic (slau343b).  That was the cause of the confusion.

Tried P3_7 (different blue LED on Frainchpad) and it blinked as expected.

Tried PJ_0, but it didn't compile.  I guess, IDE doesn't have this constant defined.  Oh well.

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