Jump to content
43oh

Recommended Posts

Hello Group,

 

While I am new to this group, I have been designing hardware and developing software since I had hair and it wasn't grey. I am trying to use the CC3200 LaunchPad for a simple IoT demo, but I am having a lot of trouble finding the pin assignments; pinMode(RED_LED, OUTPUT), So I came here for help. It must be easy to find since so many people are using Energia and doing things with the CC3200, I'm probably missing something simple.

 

Paul

 

Link to post
Share on other sites

Hello @@Pauliet and welcome to 43oh...

 

The pin maps are at energia.nu.  For example, the pin map for the CC3200 is here:  http://energia.nu/pin-maps/guide_cc3200launchpad/

 

The red LED is at pin number 29.

 

Or you can look in pins_energia.h for your processor / variant.  For the CC3200 it is listed like so:

 

static const uint8_t RED_LED = 29;
static const uint8_t GREEN_LED = 10;
static const uint8_t YELLOW_LED = 9;
static const uint8_t PUSH1 = 3;
static const uint8_t PUSH2 = 11;

static const uint8_t A0 = 23;
static const uint8_t A1 = 2;
static const uint8_t A2 = 6;
static const uint8_t A3 = 24;
 

Or you could write a little sketch and just print it out....

void setup(){
  Serial.begin(9600);
  Serial.print("RED_LED = ");
  Serial.println(RED_LED);
}

void loop(){
}

Note that you may find sketches that use pin nomenclature like P1.0 coded as P1_0.  This has is being deprecated so use the pin numbers or assigned variable names instead in Energia.

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