Decode SONY IR remote signals.
More...
#include "simpletools.h"
Go to the source code of this file.
Macros |
#define | ENTER 11 |
| ENTER constant value 11 corresponds to ENTER key.
|
#define | CH_UP 16 |
| CH_UP constant value 16 corresponds to channel up key.
|
#define | CH_DN 17 |
| CH_DN constant value 17 corresponds to channel down key.
|
#define | VOL_UP 18 |
| VOL_UP constant value 18 corresponds to volume up key.
|
#define | VOL_DN 19 |
| VOL_DN constant value 19 corresponds to volume down key.
|
#define | MUTE 20 |
| MUTE constant value 20 corresponds to mute key.
|
#define | PWR 21 |
| PWR constant value 21 corresponds to power key.
|
#define | PREV_CH 59 |
| PREV_CH constant value 59 corresponds to previous channel key.
|
Functions |
void | ir_tLimit (int ms) |
| Set the time limit to wait for a SONY IR remote packet.
|
int | ir_key (int pin) |
| Report the SONY IR remote key pressed. Removes device identifying information from the packet and just returns the value of the key.
|
int | ir_code (int pin, int bits) |
| Return the entire IR packet value. Does not strip .
|
Detailed Description
Decode SONY IR remote signals.
- Author
- Andy Lindsay
- Version
- 0.85
- Copyright
- Copyright (C) Parallax, Inc. 2013. All Rights MIT Licensed.
Function Documentation
int ir_code |
( |
int |
pin, |
|
|
int |
bits |
|
) |
| |
Return the entire IR packet value. Does not strip .
- Parameters
-
pin | Number of the I/O pin connected to IR receiver. |
bits | Number of bits to retrieve (up to 12). |
- Returns
- IR message packet value.
Report the SONY IR remote key pressed. Removes device identifying information from the packet and just returns the value of the key.
- Parameters
-
pin | Number of the I/O pin connected to IR receiver. |
- Returns
- key value.
Set the time limit to wait for a SONY IR remote packet.
- Parameters
-
ms | The number of milliseconds to wait. |