kender 0 Posted April 13, 2013 Share Posted April 13, 2013 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 Quote Link to post Share on other sites
Rei Vilo 695 Posted April 13, 2013 Share Posted April 13, 2013 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/ kender 1 Quote Link to post Share on other sites
kender 0 Posted April 13, 2013 Author Share Posted April 13, 2013 @@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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.