refactor sony 12 bit command function
This commit is contained in:
@@ -1,70 +1,80 @@
|
||||
// Pin definitions
|
||||
#define IR_SEND_PIN 4
|
||||
#define LED_PIN 13
|
||||
#define IR_SEND_PIN 4
|
||||
#define LED_PIN 13
|
||||
|
||||
// IR commands (Sony 12bit)
|
||||
|
||||
int POWER = 0x15; //Das ist noch ein Fehler. Eigentlich brauche ich eine Möglichkeit key/value Paare auszulesen.
|
||||
// int POWER = 0x15; //Das ist noch ein Fehler. Eigentlich brauche ich eine Möglichkeit key/value Paare auszulesen.
|
||||
|
||||
//#define POWER 0x15
|
||||
#define PLAY 0x2A
|
||||
#define PAUSE 0x29
|
||||
#define STOP 0x28
|
||||
#define PREV 0x20 //geraten
|
||||
#define NEXT 0x21
|
||||
#define POWER 0x15
|
||||
#define PLAY 0x2A
|
||||
#define PAUSE 0x29
|
||||
#define STOP 0x28
|
||||
#define PREV 0x20 // geraten
|
||||
#define NEXT 0x21
|
||||
|
||||
//old commands
|
||||
#define EJECT 0x69E
|
||||
//#define POWER 0xA9E
|
||||
#define DISPLAY 0x19E
|
||||
#define SCROLL 0x99E
|
||||
#define CONTINUE 0xB9E
|
||||
#define SHUFFLE 0x79E
|
||||
#define PROGRAM 0xF9E
|
||||
#define KEY_D 0xD9E
|
||||
#define KEY_E 0x59E
|
||||
#define NUMBER1 0x01E
|
||||
#define NUMBER2 0x81E
|
||||
#define NUMBER3 0x41E
|
||||
#define NUMBER4 0xC1E
|
||||
#define NUMBER5 0x21E
|
||||
#define NUMBER6 0xA1E
|
||||
#define NUMBER7 0x61E
|
||||
#define NUMBER8 0xE1E
|
||||
#define NUMBER9 0x11E
|
||||
#define NUMBER10 0x91E
|
||||
#define NUMBER11 0x03E
|
||||
#define NUMBER12 0x83E
|
||||
#define NUMBER13 0x43E
|
||||
#define NUMBER14 0xC3E
|
||||
#define NUMBER15 0x23E
|
||||
#define NUMBER16 0xA3E
|
||||
#define NUMBER17 0x63E
|
||||
#define NUMBER18 0xE3E
|
||||
#define NUMBER19 0x13E
|
||||
#define NUMBER20 0x93E
|
||||
#define NUMBER21 0x53E
|
||||
#define NUMBER22 0xD3E
|
||||
#define NUMBER23 0x33E
|
||||
#define NUMBER24 0xB3E
|
||||
#define NUMBER25 0x73E
|
||||
#define LARGER25 0x51E
|
||||
#define REPEATMODE 0x65E
|
||||
#define ATOB 0xE5E
|
||||
#define ASPACE 0xCDE
|
||||
#define MSCAN 0x2DE
|
||||
#define NAME 0x3DE
|
||||
#define CHAR 0x6DE
|
||||
#define NUM 0xEDE
|
||||
#define CLEAR 0xF1E
|
||||
// IR commands (Sony 20bit)
|
||||
#define Q 0x41
|
||||
#define W 0x47
|
||||
#define E 0x1A
|
||||
#define R 0x42
|
||||
#define T 0x44
|
||||
#define Z 0x4A
|
||||
#define SPACE 0x4C
|
||||
#define COMMA 0x4E
|
||||
|
||||
// old commands
|
||||
#define EJECT 0x69E
|
||||
// #define POWER 0xA9E
|
||||
#define DISPLAY 0x19E
|
||||
#define SCROLL 0x99E
|
||||
#define CONTINUE 0xB9E
|
||||
#define SHUFFLE 0x79E
|
||||
#define PROGRAM 0xF9E
|
||||
#define KEY_D 0xD9E
|
||||
#define KEY_E 0x59E
|
||||
#define NUMBER1 0x01E
|
||||
#define NUMBER2 0x81E
|
||||
#define NUMBER3 0x41E
|
||||
#define NUMBER4 0xC1E
|
||||
#define NUMBER5 0x21E
|
||||
#define NUMBER6 0xA1E
|
||||
#define NUMBER7 0x61E
|
||||
#define NUMBER8 0xE1E
|
||||
#define NUMBER9 0x11E
|
||||
#define NUMBER10 0x91E
|
||||
#define NUMBER11 0x03E
|
||||
#define NUMBER12 0x83E
|
||||
#define NUMBER13 0x43E
|
||||
#define NUMBER14 0xC3E
|
||||
#define NUMBER15 0x23E
|
||||
#define NUMBER16 0xA3E
|
||||
#define NUMBER17 0x63E
|
||||
#define NUMBER18 0xE3E
|
||||
#define NUMBER19 0x13E
|
||||
#define NUMBER20 0x93E
|
||||
#define NUMBER21 0x53E
|
||||
#define NUMBER22 0xD3E
|
||||
#define NUMBER23 0x33E
|
||||
#define NUMBER24 0xB3E
|
||||
#define NUMBER25 0x73E
|
||||
#define LARGER25 0x51E
|
||||
#define REPEATMODE 0x65E
|
||||
#define ATOB 0xE5E
|
||||
#define ASPACE 0xCDE
|
||||
#define MSCAN 0x2DE
|
||||
#define NAME 0x3DE
|
||||
#define CHAR 0x6DE
|
||||
#define NUM 0xEDE
|
||||
#define CLEAR 0xF1E
|
||||
// #define PLAY 0x55E
|
||||
// #define PAUSE 0x95E
|
||||
// #define STOP 0x15E
|
||||
// #define AMSPREV 0x05E
|
||||
// #define AMSNEXT 0x85E
|
||||
#define RECORD 0xB5E
|
||||
#define REWIND 0xD5E
|
||||
#define RECORD 0xB5E
|
||||
#define REWIND 0xD5E
|
||||
#define FASTFORWARD 0x35E
|
||||
#define TREC 0x0DE
|
||||
#define MUSICSYNC 0xFDE
|
||||
#define NAMESELECT 0x87E
|
||||
#define TREC 0x0DE
|
||||
#define MUSICSYNC 0xFDE
|
||||
#define NAMESELECT 0x87E
|
||||
|
||||
Reference in New Issue
Block a user