When I call the command readToneDetector() the output is always the
same, how if the microphone detects always a sound....
the code that I used is the following:
event void Boot.booted(){
call Microphone.enable();
}
void report_tone(){
if(call Microphone.enable()==SUCCESS) call Leds.led2Toggle();
if(call Microphone.readToneDetector() == 0) call
Leds.led1Toggle();
}
async event error_t Microphone.toneDetected(){
call Microphone.disable(); // I insert this line
because I have read in a post that the .toneDetected() dosen't disable
the interrupt
return SUCCESS;
}
Can someone help me? Thanks in advance!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help