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

Button interrupt on edge fired repeatedly #248

Open
Gieneq opened this issue Apr 7, 2024 · 0 comments
Open

Button interrupt on edge fired repeatedly #248

Gieneq opened this issue Apr 7, 2024 · 0 comments

Comments

@Gieneq
Copy link

Gieneq commented Apr 7, 2024

This example: https://github.com/esp-rs/std-training/blob/main/advanced/button-interrupt/examples/solution.rs
Copy pased to setup generated from std template on "ESP_IDF_VERSION = "v5.1.3"" uploaded to ESP32C3 M5 stamp. Same effect on Wokwi ESP32C3 std blink example.
In both cases I got spammed with button clicked. It looks like instead "on_edge" interrupt I got "on_level".

Also initial debug log is not changing at all. Only indicates used GPIOs with all params set to 0:
I (18) gpio: GPIO[9]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
No change after setting input pulls, attaching interrupt or using as output.

dependencies:
esp-idf-svc = { version = "0.48", default-features = false }
anyhow = "1.0.81"

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

No branches or pull requests

1 participant