Add IR codes for Denon AVR (#61)

Covers all buttons available on the RC-1243
This commit is contained in:
Matthew Gajownik 2024-03-10 21:40:26 +11:00 committed by GitHub
parent a8265c9580
commit 4227372859
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,46 @@
#include "commandHandler.h"
#include "device_denonAvr/device_denonAvr.h"
void register_device_denon() {
commands[DENON_POWER_TOGGLE] = makeCommandData(IR_DENON, {"0x2A4C028A0088"});
commands[DENON_POWER_SLEEP] = makeCommandData(IR_DENON, {"0x2A4C02822CAC"});
commands[DENON_VOL_MINUS] = makeCommandData(IR_DENON, {"0x2A4C0288E862"});
commands[DENON_VOL_PLUS] = makeCommandData(IR_DENON, {"0x2A4C0280E86A"});
commands[DENON_VOL_MUTE] = makeCommandData(IR_DENON, {"0x2A4C0284E86E"});
commands[DENON_CHAN_PLUS] = makeCommandData(IR_DENON, {"0x2A4C0288DC56"});
commands[DENON_CHAN_MINUS] = makeCommandData(IR_DENON, {"0x2A4C0284DC5A"});
commands[DENON_INPUT_CABLESAT] = makeCommandData(IR_DENON, {"0x2A4C028CB43A"});
commands[DENON_INPUT_MEDIAPLAYER] = makeCommandData(IR_DENON, {"0x2A4C0286B430"});
commands[DENON_INPUT_BLURAY] = makeCommandData(IR_DENON, {"0x2A4C0288B43E"});
commands[DENON_INPUT_GAME] = makeCommandData(IR_DENON, {"0x2A4C028AB43C"});
commands[DENON_INPUT_AUX1] = makeCommandData(IR_DENON, {"0x2A4C0289B43F"});
commands[DENON_INPUT_AUX2] = makeCommandData(IR_DENON, {"0x2A4C0285B433"});
commands[DENON_INPUT_PHONO] = makeCommandData(IR_DENON, {"0x2A4C028034B6"});
commands[DENON_INPUT_TUNER] = makeCommandData(IR_DENON, {"0x2A4C028F34B9"});
commands[DENON_INPUT_TV] = makeCommandData(IR_DENON, {"0x2A4C0284B432"});
commands[DENON_INPUT_USB] = makeCommandData(IR_DENON, {"0x2A4C028734B1"});
commands[DENON_INPUT_BLUETOOTH] = makeCommandData(IR_DENON, {"0x2A4C028F74F9"});
commands[DENON_INPUT_INTERNET] = makeCommandData(IR_DENON, {"0x2A4C028A74FC"});
commands[DENON_INPUT_HEOS] = makeCommandData(IR_DENON, {"0x2A4C028E34B8"});
commands[DENON_POWER_ECO] = makeCommandData(IR_DENON, {"0x2A4C02816CEF"});
commands[DENON_INFO] = makeCommandData(IR_DENON, {"0x2A4C0280E466"});
commands[DENON_OPTION] = makeCommandData(IR_DENON, {"0x2A4C028ADC54"});
commands[DENON_BACK] = makeCommandData(IR_DENON, {"0x2A4C028440C6"});
commands[DENON_SETUP] = makeCommandData(IR_DENON, {"0x2A4C028C40CE"});
commands[DENON_MENU_ENTER] = makeCommandData(IR_DENON, {"0x2A4C028F800D"});
commands[DENON_MENU_UP] = makeCommandData(IR_DENON, {"0x2A4C028D800F"});
commands[DENON_MENU_LEFT] = makeCommandData(IR_DENON, {"0x2A4C028B8009"});
commands[DENON_MENU_RIGHT] = makeCommandData(IR_DENON, {"0x2A4C02878005"});
commands[DENON_MENU_DOWN] = makeCommandData(IR_DENON, {"0x2A4C02838001"});
commands[DENON_SOUNDMODE_MOVIE] = makeCommandData(IR_DENON, {"0x2A4C028928A3"});
commands[DENON_SOUNDMODE_MUSIC] = makeCommandData(IR_DENON, {"0x2A4C028528AF"});
commands[DENON_SOUNDMODE_GAME] = makeCommandData(IR_DENON, {"0x2A4C028D28A7"});
commands[DENON_SOUNDMODE_PURE] = makeCommandData(IR_DENON, {"0x2A4C028AC840"});
commands[DENON_QUICKSELECT_1] = makeCommandData(IR_DENON, {"0x2A4C028248C8"});
commands[DENON_QUICKSELECT_2] = makeCommandData(IR_DENON, {"0x2A4C028A48C0"});
commands[DENON_QUICKSELECT_3] = makeCommandData(IR_DENON, {"0x2A4C028648CC"});
commands[DENON_QUICKSELECT_4] = makeCommandData(IR_DENON, {"0x2A4C028E48C4"});
commands[DENON_MEDIA_PREV] = makeCommandData(IR_DENON, {"0x2A4C028C7CF2"});
commands[DENON_MEDIA_PLAYPAUSE] = makeCommandData(IR_DENON, {"0x2A4C02807CFE"});
commands[DENON_MEDIA_NEXT] = makeCommandData(IR_DENON, {"0x2A4C02827CFC"});
}

View file

@ -0,0 +1,48 @@
#ifndef __DEVICE_DENON_H__
#define __DEVICE_DENON_H__
#define DENON_POWER_TOGGLE "DENON_POWER_TOGGLE"
#define DENON_POWER_SLEEP "DENON_POWER_SLEEP"
#define DENON_VOL_MINUS "DENON_VOL_MINUS"
#define DENON_VOL_PLUS "DENON_VOL_PLUS"
#define DENON_VOL_MUTE "DENON_VOL_MUTE"
#define DENON_CHAN_PLUS "DENON_CHAN_PLUS"
#define DENON_CHAN_MINUS "DENON_CHAN_MINUS"
#define DENON_INPUT_CABLESAT "DENON_INPUT_CABLESAT"
#define DENON_INPUT_MEDIAPLAYER "DENON_INPUT_MEDIAPLAYER"
#define DENON_INPUT_BLURAY "DENON_INPUT_BLURAY"
#define DENON_INPUT_GAME "DENON_INPUT_GAME"
#define DENON_INPUT_AUX1 "DENON_INPUT_AUX1"
#define DENON_INPUT_AUX2 "DENON_INPUT_AUX2"
#define DENON_INPUT_PHONO "DENON_INPUT_PHONO"
#define DENON_INPUT_TUNER "DENON_INPUT_TUNER"
#define DENON_INPUT_TV "DENON_INPUT_TV"
#define DENON_INPUT_USB "DENON_INPUT_USB"
#define DENON_INPUT_BLUETOOTH "DENON_INPUT_BLUETOOTH"
#define DENON_INPUT_INTERNET "DENON_INPUT_INTERNET"
#define DENON_INPUT_HEOS "DENON_INPUT_HEOS"
#define DENON_POWER_ECO "DENON_POWER_ECO"
#define DENON_INFO "DENON_INFO"
#define DENON_OPTION "DENON_OPTION"
#define DENON_BACK "DENON_BACK"
#define DENON_SETUP "DENON_SETUP"
#define DENON_MENU_ENTER "DENON_MENU_ENTER"
#define DENON_MENU_UP "DENON_MENU_UP"
#define DENON_MENU_LEFT "DENON_MENU_LEFT"
#define DENON_MENU_RIGHT "DENON_MENU_RIGHT"
#define DENON_MENU_DOWN "DENON_MENU_DOWN"
#define DENON_SOUNDMODE_MOVIE "DENON_SOUNDMODE_MOVIE"
#define DENON_SOUNDMODE_MUSIC "DENON_SOUNDMODE_MUSIC"
#define DENON_SOUNDMODE_GAME "DENON_SOUNDMODE_GAME"
#define DENON_SOUNDMODE_PURE "DENON_SOUNDMODE_PURE"
#define DENON_QUICKSELECT_1 "DENON_QUICKSELECT_1"
#define DENON_QUICKSELECT_2 "DENON_QUICKSELECT_2"
#define DENON_QUICKSELECT_3 "DENON_QUICKSELECT_3"
#define DENON_QUICKSELECT_4 "DENON_QUICKSELECT_4"
#define DENON_MEDIA_PREV "DENON_MEDIA_PREV"
#define DENON_MEDIA_PLAYPAUSE "DENON_MEDIA_PLAYPAUSE"
#define DENON_MEDIA_NEXT "DENON_MEDIA_NEXT"
void register_device_denon();
#endif /*__DEVICE_DENON_H__*/

View file

@ -18,6 +18,7 @@
#include "device_appleTV/device_appleTV.h"
#include "device_keyboard_mqtt/device_keyboard_mqtt.h"
#include "device_keyboard_ble/device_keyboard_ble.h"
#include "device_denonAvr/device_denonAvr.h"
// gui and keys
#include "gui_general_and_keys/guiBase.h"
#include "gui_general_and_keys/gui_irReceiver.h"
@ -71,6 +72,7 @@ void setup() {
#ifdef ENABLE_KEYBOARD_BLE
register_device_keyboard_ble();
#endif
register_device_denon();
register_specialCommands();
// register the GUIs. They will be displayed in the order they are registered.