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

The LED doesn't light up #60

Closed
mqxqls opened this issue May 4, 2022 · 2 comments
Closed

The LED doesn't light up #60

mqxqls opened this issue May 4, 2022 · 2 comments

Comments

@mqxqls
Copy link

mqxqls commented May 4, 2022

The LED doesn't light up

@zrz4066
Copy link

zrz4066 commented Jun 18, 2022

I find that the gpio of led changed from gpio_8 to gpio_7.

@gcoguiec
Copy link

gcoguiec commented Oct 5, 2022

If we're talking about the LED on the GPIO7 pin (ESP32-C3-DevKit-RUST-1 board), you can try:

const LED_PIN: i32 = 7;
unsafe {
    gpio_reset_pin(LED_PIN);
    assert_eq!(gpio_set_direction(LED_PIN, gpio_mode_t_GPIO_MODE_OUTPUT), ESP_OK);
    assert_eq!(gpio_set_level(LED_PIN, 1), ESP_OK);
}

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

4 participants