My FeedDiscussionsHashnode Enterprise
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Omar Hiari

3 likes

·

855 reads

2 comments

Ant Skelton
Ant Skelton
Nov 14, 2023

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 for subscribe() where they note that you must call it from non-ISR context.

·
·1 reply
Omar Hiari
Omar Hiari
Author
·Nov 14, 2023

Thanks for reading! To your comment, there has probably been a change in the interface, however, it makes sense. Resetting the interrupt enable is not unusual.

·