BobL 0 Posted February 13, 2018 Share Posted February 13, 2018 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! Quote Link to post Share on other sites
Rei Vilo 695 Posted February 13, 2018 Share Posted February 13, 2018 http://energia.nu Quote Link to post Share on other sites
energia 485 Posted February 13, 2018 Share Posted February 13, 2018 Great to hear you got it to blink. That is the first step! There is no pin 108 in Energia land for the EK-TM4C1294XL. Pin 108 is a pin on the chip which is mapped to Energia pin 81 (LED1). See pinmap here: http://energia.nu/pin-maps/guide_tm4c129launchpad/. Quote Link to post Share on other sites
BobL 0 Posted February 13, 2018 Author Share Posted February 13, 2018 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. Quote Link to post Share on other sites
energia 485 Posted February 14, 2018 Share Posted February 14, 2018 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 Quote Link to post Share on other sites
BobL 0 Posted February 14, 2018 Author Share Posted February 14, 2018 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! 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.