Other Parts Discussed in Thread: ENERGIA
CC3200-LAUNCHPAD:How to interface an led ??I'm unable to use plink code by directly changing pin
digitalWrite(50,HIGH);///////I'm not getting by using this.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
CC3200-LAUNCHPAD:How to interface an led ??I'm unable to use plink code by directly changing pin
digitalWrite(50,HIGH);///////I'm not getting by using this.
Hi,
Questions related to Energia you should ask at forum. But Energia contains this example already:
// most launchpads have a red LED #define LED RED_LED //see pins_energia.h for more LED definitions //#define LED GREEN_LED // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(LED, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
I am not sure, but you should check that you set pinMode() properly.
Jan