Re: how to drive onboard red and blue leds on ESP-01 ?
Posted: Sun Jun 21, 2015 2:40 pm
> 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:
Hermann.
>
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 all
gpio.write(10, 1-gpio.read(10))
Hermann.