Jump to content

Recommended Posts

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(PIN_50, HIGH);
 digitalWrite(PIN_50, LOW);
Edited by bluehash
[ADMIN] Please use code tags
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/

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.

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...