Ralphxyz 0 Posted November 19 Sorry I am brand new to all of this. Energia uses pins but how are the pins mapped to the MSP430? Where on the MSP430FR6989 or MSP-EXP430G2 is A0? Thanks for the much needed help. Ralph Quote Share this post Link to post Share on other sites
Rei Vilo 686 Posted November 19 Please check the pins maps at https://energia.nu/pinmaps/ and go through the data-sheets of the LaunchPads and related MCUs. Quote Share this post Link to post Share on other sites
Ralphxyz 0 Posted November 19 Thank you, I knew it had to be somewhere. However the MSP430FR6989 image does not show A0 and the MSPG2 pinmap page is not found! On the MSP430FR6989 pinmap I see BLUE A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14, and A15. Of course the data-sheets do not use pins, they reference Ports, which coming from AVR programing I prefer. I am trying to use the stepper_speedControl and it calls for a pot on A0. Hopefully I am overlooking something, which would not be the first time. Ralph Quote Share this post Link to post Share on other sites
energia 482 Posted November 20 A0 is on P1.0 which is not brought out to the boosterpack header but instead connected to LED1 (aka RED LED). If you wanted to you could remove the jumper from LED1 and feed your analog signal into the right side jumper pin. You can then use analogRead(A0) to acquire the analog signal on that pin. I suggest modifying the Sketch and picking a different analog input that is available on the boosterpack header. Quote Share this post Link to post Share on other sites
Ralphxyz 0 Posted November 20 Thanks, so much to learn, modifying the Sketch is great advise, thank you. Ralph Quote Share this post Link to post Share on other sites
Rei Vilo 686 Posted November 20 You might also find interesting tips from Porting an Arduino library to Energia Quote Share this post Link to post Share on other sites