I’ve just ran Robin2’s comprehensive sketch from the thread, ‘Demonstration code for several things at the same time’.
There seem to be no comments in the last six years so I’m therefore posting here instead.
I intend to step through this carefully as a great potential learning exercise asap. But it all appears to work as intended - except for the button.
I’m using the familiar four pin NO breadboard button, which goes low on pressing. It behaves erratically here and I’m wondering if there’s a likely explanation I’ve missed please? The button is physically OK, and has been working fine with other sketches today, although I tried another to be sure.
My code is unaltered from the original apart from pin numbers and a few formating changes. But it takes the post over the site’s limit, so I’ve attached the file:
SeveralThingsCode.ino (9.36 KB)