Remote IR Codes

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

#define disk_skip 0x7D1

#define KEY_SLEEP 0x061


#define KEY_POWER 0xA81
#define cd_play 0x4D1
#define tuner_band_play 0xF16
#define deck_a_play 0x2EE
#define deck_b_play 0x2CE
#define function_play 0x966
#define KEY_PAUSE 0x9CB
#define KEY_STOP 0x1CB
#define prev_track 0x0CB
#define KEY_NEXT 0x8CB
#define skip_prev 0xCCB
#define skip_next 0x2CB
#define check 0xB11
#define KEY_CLEAR 0xF11
#define loop 0x1F1
#define flash 0xEEB
#define KEY_VOLUMEUP 0x481
#define KEY_VOLUMEDOWN 0xC81
#define KEY_UP 0x84B
#define KEY_DOWN 0x44B
#define KEY_LEFT 0x24B
#define KEY_RIGHT 0xC4B
#define menu_select 0x04B

char KeyIN;
long int Key_Fun;
KeyIN=Serial.read();

if(KeyIN=='A') Key_Fun=disk_skip;
if(KeyIN=='B') Key_Fun=KEY_SLEEP;
if(KeyIN=='C') Key_Fun=KEY_POWER;
if(KeyIN=='D') Key_Fun=cd_play;
if(KeyIN=='E') Key_Fun=tuner_band_play;
if(KeyIN=='F') Key_Fun=deck_a_play;
if(KeyIN=='G') Key_Fun=deck_b_play ;
if(KeyIN=='H') Key_Fun=function_play;
if(KeyIN=='I') Key_Fun=KEY_PAUSE;
if(KeyIN=='J') Key_Fun=KEY_STOP;
if(KeyIN=='K') Key_Fun=prev_track;
if(KeyIN=='L') Key_Fun=KEY_NEXT;
if(KeyIN=='M') Key_Fun=skip_prev;
if(KeyIN=='N') Key_Fun=skip_next;
if(KeyIN=='O') Key_Fun=_check;
if(KeyIN=='P') Key_Fun=KEY_CLEAR;
if(KeyIN=='Q') Key_Fun=_loop;
if(KeyIN=='R') Key_Fun=flash;
if(KeyIN=='S') Key_Fun=KEY_VOLUMEUP;
if(KeyIN=='T') Key_Fun=KEY_VOLUMEDOWN;
if(KeyIN=='U') Key_Fun=KEY_UP;
if(KeyIN=='V') Key_Fun=KEY_DOWN;
if(KeyIN=='W') Key_Fun=KEY_LEFT;
if(KeyIN=='X') Key_Fun=KEY_RIGHT;
if(KeyIN=='Y') Key_Fun=menu_select;

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z

You might also like