ESP32 Standard Library Embedded Rust: GPIO Interrupts
This blog post is the eighth of a multi-part series of posts where I explore various peripherals in the ESP32C3 using standard library embedded Rust and the esp-idf-hal. Please be aware that certain concepts in newer posts could depend on concepts in...
blog.theembeddedrustacean.com10 min read
Ant Skelton
Great example, thank you! I found I had to call
button.enable_interrupt().unwrap()inside the loop, or I'd only get precisely one interrupt. This is noted in the most recent docs forsubscribe()where they note that you must call it from non-ISR context.