0 or 1, which in C is usually interpreted as FALSE or TRUE.
That would translate to 0v or 5v on your input pin
if it is configured for digital I/O -- actually it's
more likely less or greater than something around 2v.
MS
Howard Gani wrote:
> Hi,
>
> I have a newb question.
>
> What does TOSH_READ return ?
>
> static inline int TOSH_READ_##name##_PIN()
> {return (inp(PIN##port) & (1 << bit)) != 0;}
>
> I'm reading data off a digital 5v sensor. So does it return the
> voltage or just TRUE/FALSE ?
>
> Sorry if it sounds stupid, but I'm just trying to make sure.
>
> Thanks in advance.
>
> Regards,
>
> Howard Gani
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help