[Tinyos Core WG] non-TEP code
Philip Levis
pal at cs.stanford.edu
Mon Nov 27 18:22:44 PST 2006
Rather than going down a rathole, let's take a step back.
Basically a button is a digital IO line with debouncing. Are there
other inputs where you want to
1) Know when it goes high
2) Know when it goes low
3) Provide debouncing
which are not buttons? I'd imagine touch sensors, rain gauges, or
other sensor which depends on a physical contact. Not all care about
both 1+2. This seems like a more general library component that can
sit on top of a GpioInterrupt component. The fact that you care
about both directions makes this distinct from the SID Notify
interface, unless you had two Notify interfaces, with the value being
a timestamp.
Gil, what are your thoughts?
Phil
More information about the Tinyos-2.0wg
mailing list