Toggling a TelosB ADC Pin

From Cyber-Physical Systems Laboratory
Revision as of 01:11, 22 September 2009 by Liangfok (talk | contribs)
Jump to navigationJump to search

TinyOS 1.x

First do this in StdControl.init():

TOSH_MAKE_ADC3_OUTPUT();

To set the pin high:

TOSH_SET_ADC3_PIN();

To set the pin low:

TOSH_CLR_ADC3_PIN();