Sana95 0 Posted February 10, 2015 Share Posted February 10, 2015 Hi, I am just getting started with CC3200 and Energia for my very first project. I wanted to know if it's possible to use pinmux to configure pins of the cc3200 on Energia? if yes/no, what is the procedure/alternative? Quote Link to post Share on other sites
Sana95 0 Posted February 10, 2015 Author Share Posted February 10, 2015 (edited) I am essentially trying to connect an External LED and execute the Blink example pre loaded in Energia on it instead of the inbuilt LED.This is the code I was trying to use. I also used the internal LED to check if the code was working or not. With regard to the connections, i connected the LED, to a resistor and then connected it to PIN_50. the circuit was completed by connecting the other end of the LED, to the Gnd. #define L GREEN_LED void setup() { // put your setup code here, to run once: pinMode(PIN_50, OUTPUT); pinMode(L, OUTPUT); //digitalWrite(PIN_50, LOW); } void loop() { // put your main code here, to run repeatedly: digitalWrite(L,HIGH); digitalWrite(PIN_50, HIGH); delay(200); digitalWrite(L,LOW); digitalWrite(PIN_50, LOW); delay(200); } Edited February 17, 2015 by bluehash [ADMIN] Please use code tags Quote Link to post Share on other sites
nitred 2 Posted February 10, 2015 Share Posted February 10, 2015 The image found on the following link with CC3200 Launchpad should serve as a useful reference as to what each pin is capable of on the Energia Platform: http://energia.nu/wordpress/wp-content/uploads/2014/09/cc3200lppinmap.jpg You should use the pin numbers as seen in the image (black background with white numbers) to address every pin. Also you should look up this reference page which is similar to the Arduino and it is perhaps the best place to start to learn each pin config : http://energia.nu/reference/ Quote Link to post Share on other sites
cubeberg 540 Posted February 16, 2015 Share Posted February 16, 2015 FYI - the pins on the CC3200 don't provide enough current to run LEDs (or at least not without damaging them long-term). That's why the on-board LEDs use transistors. Quote Link to post Share on other sites
Sana95 0 Posted February 17, 2015 Author Share Posted February 17, 2015 @cubeberg: Thanks, but it works fine if you add a resistor to the circuit. 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.