We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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);
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.
mgos_gpio_set_mode(mgos_sys_config_get_pins_led(), MGOS_GPIO_MODE_OUTPUT);
The text was updated successfully, but these errors were encountered:
Same is necessary on ESP32. I am guessing that the LED GPIO pin defaults to output mode on other boards?
Sorry, something went wrong.
try changing config file, set LED =2
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: