Interrupt not working on calling other function [Solved]

Excellent. I love it when a plan comes together.

The code looked right - at least as a proof of concept.
Nice job groking the concept and prototyping so fast.

Do watch out for contact bounce if you have mechanical switches, and write your code to accomodate that in a fail-safe manner (expect multiple mS of bounce.) Note that the iteration-to-iteration latency between calls to loop() will change if you disconnect from the cloud, so you may not see contact bounce when connected to the cloud, but may see it if you run disconnected.

1 Like