On May 13, 2008, at 11:04 AM, Shikhar Sachan wrote: > Greetings > I am facing slight difficulty in reading values directly from the ADC > pins in my MicaZ motes. > I need to retrieve values from ADC1,2 and 3. In tinyOS 1x,there was an > ADC interface defined which could be used. > > However, this is not the case in tinyos 2x because of so much > abstraction. > I would be thankful if someone could pass me on the code.
Please take a look at platform/mica/VoltageC.nc platform/mica/VoltageP.nc They show how to write a simple ADC sample. VoltageP is just 3 lines of code that tell the ADC how to be configured for the sample. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
