I've been spending some time trying to get my Makerbot Watch to work
(with some success... I'll post the code soon).
But I've been encountering a little hiccup. The switch wouldn't work in
any way. And in fact, there is a reason... I completely forgot to add
pullup resistors...
Thus, the switches are not working...
I'm working to see if there can be a software way, but I'm quite
pessimistic about this fact...
Any way, the ds1337 is working really fine! I'm quite happy about this!
I'm now trying to reduce the power consumption via sleep and a watchdog
to wake up the microcontroller to see if there's anything to do.
I'll also try to set up soon an alarm system!
Cheers,
Romain
Little correction: I forgot it, but the ATMEGA does have internal pullup
resistors! And I even forgot that I knew it, because I deleted the
pullup resistors as I wanted to use the internal ones!
So it works well!
I'm going to do some cleanup in the code, and then, I'll post it here!
Cheers all!
Romain
Just set the relevant pins to input and digitalWrite 1 to them.
They'll detect button presses as 0 and report 1 otherwise.
Ante Vukorepa
----
Sent from my iPad
I did have an additional double take shortly after - i forgot the values reported by the switch pins are inverted and wondered why i'm getting unexpected results from (switch1 || switch2) :)
Ante Vukorepa
----
Sent from my iPad