Jump to content
Sana95

Pin Mux- Energia

Recommended Posts

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? 

Share this post


Link to post
Share on other sites

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 by bluehash
[ADMIN] Please use code tags

Share this post


Link to post
Share on other sites

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/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...