PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Simple Libraries
Remote
libsirc
libsirc.c
1
/*
2
libsirc.c
3
4
Test harness for sonyremote control protocol library.
5
*/
6
7
/*
8
void ir_tLimit(int ms);
9
int ir_key(int irDetPin);
10
int ir_code(int irDetPin, int bits);
11
12
#define SONY_IR_ENTER 11
13
#define SONY_IR_CH_UP 16
14
#define SONY_IR_CH_DN 17
15
#define SONY_IR_VOL_UP 18
16
#define SONY_IR_VOL_DN 19
17
#define SONY_IR_MUTE 20
18
#define SONY_IR_PWR 21
19
#define SONY_IR_PRV_CH 59
20
*/
21
22
#include "simpletools.h"
// Library includes
23
#include "sirc.h"
24
25
int
main
()
// Main function
26
{
27
sirc_setTimeout(1000);
// -1 if no remote in 1 s
28
while
(1)
// Repeat indefinitely
29
{
30
print(
"%c button = %d, device = %d%c"
,
31
HOME, sirc_button(10), sirc_device(10), CLREOL);
32
pause(100);
33
}
34
}
35
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12