Jump to content
BobL

Energia port value for RED_LED

Recommended Posts

I'm using a Launch pad and the blink code from Energia. The Led works fine. Now I want to use the port PN 1 connected to the led value which is pin 108.

Using 108 instead of RED_LED doesn't work in the code - no Led lighting. Where are the header files so I can get this information?

Appreciate the help!

Share this post


Link to post
Share on other sites

Thank you all for replying! Pin-maps guide I find useless for a new learner. I did find pin_energia.h which is what should be used to find all the defines.

The mystery is over...

 

Thanks again.

Share this post


Link to post
Share on other sites

What in your opinion is easier in pins_energia.h that the pin map that we posted. We like to get feedback and get educated on how we can improve on our education. So any feedback that you can provide will be very valuable to us.

Thanks,

Robert

Share this post


Link to post
Share on other sites

Hello ,

What started the thing off was the pin map or other docs on the web site do not address the RED_LED or GREEN_ LED real pins. Also the pin mode command requires a pin number or so I thought. I thought it was the pin number of the micro. To me after searching for a long time and finding pins_energia.h, it made perfect sense. There were no simple examples of blink showing that GREEN_ LED could be replaced with PN_1 or 81. I think you guys do a great job and Energia so far is a great quick way to get up and running. The site pages are busy but I'm running now -all is well.

Thanks for the support!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×