-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORLDcodes.c
67 lines (59 loc) · 1.38 KB
/
WORLDcodes.c
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <avr/io.h>
#include <avr/pgmspace.h>
#include "main.h"
// Samsung code_na000 taken from OEM remote by photodiode/oscilloscope
// The Lightning Stalker 2017
// table of MUTE codes
#ifdef NA_CODES
const uint16_t code_na000Times[] PROGMEM = {
57, 57,
57, 170,
57, 4660,
454, 454,
};
const struct IrCode code_na000Code PROGMEM = {
freq_to_timerval(37900),
68, // # of pairs
2, // # of bits per index
code_na000Times,
{
0xD5,
0x00,
0x15,
0x00,
0x15,
0x40,
0x00,
0x15,
0x6D,
0x50,
0x01,
0x50,
0x01,
0x54,
0x00,
0x01,
0x56,
}
};
#endif
/*
#ifdef EU_CODES
#endif
*/
////////////////////////////////////////////////////////////////
const struct IrCode * const NAmuteCodes[] PROGMEM = {
#ifdef NA_CODES
&code_na000Code,
#ifndef EU_CODES
#endif
#endif
};
const struct IrCode * const EUmuteCodes[] PROGMEM = {
#ifdef EU_CODES
#ifndef NA_CODES
#endif
#endif
};
const uint8_t num_NAcodes = NUM_ELEM(NAmuteCodes);
const uint8_t num_EUcodes = NUM_ELEM(EUmuteCodes);