Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP8266: Default (blue) led not working #1

Open
guydelta opened this issue Dec 20, 2017 · 2 comments
Open

ESP8266: Default (blue) led not working #1

guydelta opened this issue Dec 20, 2017 · 2 comments

Comments

@guydelta
Copy link

Just initialised a new demo-c app, but noticed the blue LED is not flashing. Noticed it is due to
https://github.com/mongoose-os-apps/demo-c/blob/master/src/main.c line#48 reading
mgos_gpio_set_mode(mgos_sys_config_get_pins_led(), MGOS_GPIO_MODE_INPUT);

Changing this line to
mgos_gpio_set_mode(mgos_sys_config_get_pins_led(), MGOS_GPIO_MODE_OUTPUT);
fixes the demo.

@brandond
Copy link

brandond commented Jan 3, 2018

Same is necessary on ESP32. I am guessing that the LED GPIO pin defaults to output mode on other boards?

@roboter
Copy link

roboter commented Feb 13, 2018

try changing config file, set LED =2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants