-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRremote.ino
More file actions
43 lines (39 loc) · 780 Bytes
/
Copy pathIRremote.ino
File metadata and controls
43 lines (39 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
//Serial.println(results.value);
irrecv.resume(); // Receive the next value
}
}
/*key code of my remoter
* KEY HEX
* on/off FFA25D
* menu FFE21D
* test FF22DD
* + FF02FD
* back FFC23D
* last FFE01F
* play FFA857
* next FF906F
* 0 FF6897
* - FF9867
* C FFB04F
* 1 FF30CF
* 2 FF18E7
* 3 FF7A85
* 4 FF10EF
* 5 FF38C7
* 6 FF5AA5
* 7 FF42BD
* 8 FF4AB5
* 9 FF52AD
*/