-->
Page 1 of 1

Blinking LED with esp-open-sdk not working

PostPosted: Sat Mar 09, 2019 7:41 am
by R1BNC
I have a NodeMCU devkit 1.0 CP2102 and I am using the easygpio code, but the LED on GPIO12, 13, 14, 15 or D5, D6, D7, D8 does not blink.
Code: Select alleasygpio_outputSet (grn, 1);



But when using the esp-open-rtos's Blinky code, the LED blinks.
Code: Select all
const int grn = 12; /* Green D6 */
...
        gpio_write(grn, 1);//0



Re: Blinking LED with esp-open-sdk not working

PostPosted: Sat Mar 09, 2019 6:43 pm
by R1BNC
disregard, just set the gpio to output and it will work
Code: Select alleasygpio_pinMode(grn, EASYGPIO_NOPULL, EASYGPIO_OUTPUT);