-->
Page 3 of 3

Re: how to drive onboard red and blue leds on ESP-01 ?

PostPosted: Sun Jun 21, 2015 2:40 pm
by HermannSW
> is it also possible to drive the LEDs with LUA instead of C ??
>
yes, in LUA GPIO1 is IO index 10:
https://github.com/nodemcu/nodemcu-firmware#user-content-gpio-new-table--build-20141219-and-later

This does toggle the blue LED:
Code: Select allgpio.write(10, 1-gpio.read(10))


Hermann.