[Tinyos-help] Progamming 4 Digital Outputs in Tmote

Nicolas Esteves nicolas.esteves at inrialpes.fr
Fri Jun 1 05:00:32 PDT 2007


Hi,
Look at the datasheet 
(http://www.moteiv.com/products/docs/tmote-sky-datasheet.pdf) to find 
which port you want to use, for exclusive digital I/O you can use port 
62 (pin 7 on U2), port 63 (pin 10 on U2) or port 26 (pin 4 on U28).
Then use the GeneralIOC component to use these port. Use the makeInput() 
or makeOutput() methods to configure your pins. Finally call set() or 
clr() in your GeneralIO component to set the voltage.




More information about the Tinyos-help mailing list