Sorted! To those who may search for this:
- wire the HplMsp430GeneralIOC component to your App according with the PIN/Port you want: App.P20 -> HplMsp430GeneralIOC.Port20; // (PIN 2.0) (GIO0) - uses the interface: HplMsp430GeneralIO as P20 - call P20.makeOutput(); // Sets the pin direction to output - call P20.clr(); // Sets output to 0 - call P20.set(); // Set output to 1 Cheers, Davide On 8 Jun 2012, at 10:00, [email protected] wrote: > Hi all, > > I'm having trouble trying to figure out how to generate an output from the > GIO. > > I'm using TelosB and TinyOS-2.1.1. > > I'm not sure how to wire my application correctly, how to > initialize/configure either the GIO0 or the GIO1 and how to generate the > output signal. > > I want to use the GIO output to actuate an external device then I just need > to send a binary value > > Can anybody provide an example or point me in the right direction? > > Any help would be greatly appreciated. > > Kind regards, > > Davide > _______________________________________________ > 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
