Pin numbers go from 0 to 7...
Also, assuming you want the same PWM0 as in the mica schematic,
its port B, pin 4. I have a convenient I/O port list online:
http://www.etantdonnes.com/Motes/ATMEGApins.txt
MS
yvonne er wrote:
Dear Sir/ Mdm,
I am using MDA100 for MicaZ to collect data readings from my passive
infra-red (PIR) sensor.
I have added
TOSH_ASSIGN_PIN(PIR7, A, 8); //to assign A8 (PWM0 pin) with PIR7
in my Oscilloscope.h file. And
TOSH_MAKE_PIR7_INPUT(); //to make it an input pin
z=TOSH_READ_PIR7_PIN(); //to read in data from pir
in my Pir.C file for tinyos 2.x.
However, I received the following error message:
Oscilloscope.h:28: syntax error before `8'
Oscilloscope.h:28: warning: return-type defaults to `int'
Oscilloscope.h:28: warning: data definition has no type or storage class
PirC.nc:29: implicit declaration of function `TOSH_MAKE_PIR7_INPUT'
PirC.nc: In function `Timer1.fired':
PirC.nc:47: implicit declaration of function `TOSH_READ_PIR7_PIN'
PirC.nc: In function `Pir.read':
PirC.nc:57: implicit declaration of function `TOSH_READ_PIR7_PIN'
Thanks and regards,
Yvonne
_______________________________________________
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