|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
46 if((
CNT - t) >= tLimit)
return -1;
48 }
while((irPulse <= 2000) || (irPulse >= 2800));
50 for(
int i = 0; i < bits; i++)
53 if((irPulse > 1000) && (irPulse < 1400)) irCode |= (1 << i);
54 if((irPulse < 300) || (irPulse > 1400))
return -1;
57 if((
CNT - t) >= tLimit)
return -1;
int sirc_button(int pin)
Report the SONY IR remote button pressed. Removes device identifying information from the packet and ...
Decode SONY IR remote signals.
#define CLKFREQ
Returns the current clock frequency.
#define CNT
The system clock count.
int sirc_code(int pin, int bits)
Return the entire IR packet value. Does not strip .
int sirc_device(int pin)
Report the SONY device the IR remote is sending codes to. Device examples include TV (1),...
void sirc_setTimeout(int ms)
Set the time limit to wait for a SONY IR remote packet.