Hello
I am trying to do something like that:
event void Temp.readDone(error_t result, uint16_t data){
tempe = tempe + data;
call Leds.set(0);
if (data <= 25){
call Leds.set(1);
}else{
call Leds.set(2);
}
cont ++;
if (cont >= 10){
cont = 0;
tempe = tempe/10;
call AMControl.start();
}
}
But it does not work.
I would like to know how convert the temperature output in celsus degree.
Tu
--
Alexandre
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help