[Tinyos-help] can I use pin 8 (I2C Data) on Tmote as Digital I/O pin?

yicheng y-jie at northwestern.edu
Tue Dec 11 15:12:14 PST 2007


Hi Folks,

 

I want to use pin 8, which is I2C data pin on Tmote sky as a digital I/O
pin, is it possible? Here is my code example:

 

Configuration file:

Myapp.digitOut -> MSP430GeneralIOC.Port31;

 

Implementation file:

uses interface MSP430GeneralIO as digitOut;

 

init function:

      call digitOut.setLow();

      call digitOut.makeOutput();

      call digitOut.selectIOFunc();

 

What does "I2C data" pin mean?

 

Thanks!
Yicheng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071211/2ed19652/attachment.htm


More information about the Tinyos-help mailing list