What pin is the The Button connected to? I couldn't find that in the documentation anywhere.
The Button
(5 posts) (2 voices)-
Posted 5 years ago #
-
It's pin 38.
I answered this myself by grepping the source code and guessing. There's a vague reference to it on line 41 of examples/test-session.cpp:
// note that 38 is just a button and 39+ aren't functional as of 04/22/2010
I altered the Debounce sketch to change buttonPin to 38, and can blink the light manually now.
Posted 5 years ago # -
By the way, if you want I can send a git patch or push you changes to update the Button and Debounce sketches so they work. Or you could just update the buttonPin to 38 in those sketches. Let me know if you want a patch.
Posted 5 years ago # -
(Not strictly necessary unless you want the sketches to work with the onboard button.)
Posted 5 years ago # -
I fixed the example sketch code:
http://github.com/leaflabs/maple-ide/commit/4887883a67d085de8d0687a54f441e5a22ae81b0
(Sigh, I kind of hate commits where the attributions are longer than the code changes)I'll also make note to include in the documentation!
Posted 5 years ago #
Reply
You must log in to post.