Skip to content

Commit

Permalink
Merge pull request #78 from JustMe-NL/main
Browse files Browse the repository at this point in the history
As discussed in Sharing devices #77
  • Loading branch information
KlausMu authored Apr 16, 2024
2 parents 3a6711e + 75d9a53 commit ef12879
Show file tree
Hide file tree
Showing 14 changed files with 618 additions and 4 deletions.
15 changes: 14 additions & 1 deletion Platformio/hardware/ESP32/infrared_sender_hal_esp32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ enum IRprotocols {
IR_PROTOCOL_SAMSUNG = 2,
IR_PROTOCOL_SONY = 3,
IR_PROTOCOL_RC5 = 4,
IR_PROTOCOL_DENON = 5
IR_PROTOCOL_DENON = 5,
IR_PROTOCOL_SAMSUNG36 = 6
};
void sendIRcode_HAL(int protocol, std::list<std::string> commandPayloads, std::string additionalPayload) {
switch (protocol) {
Expand Down Expand Up @@ -129,5 +130,17 @@ void sendIRcode_HAL(int protocol, std::list<std::string> commandPayloads, std::s
}
break;
}

case IR_PROTOCOL_SAMSUNG36:
{
auto current = commandPayloads.begin();
std::string dataStr = *current;
// https://cplusplus.com/reference/string/stoull/
std::string::size_type sz = 0; // alias of size_t
const uint64_t data = std::stoull(dataStr, &sz, 0);
Serial.printf("execute: will send IR SAMSUNG36, data %s (%" PRIu64 ")\r\n", dataStr.c_str(), data);
IrSender.sendSamsung36(data);
break;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ void init_infraredSender_HAL(void) {
}

// IR protocols
enum IRprotocols {
enum IRprotocols
{
IR_PROTOCOL_GC = 0,
IR_PROTOCOL_NEC = 1,
IR_PROTOCOL_SAMSUNG = 2,
IR_PROTOCOL_SONY = 3,
IR_PROTOCOL_RC5 = 4,
IR_PROTOCOL_DENON = 5
IR_PROTOCOL_DENON = 5,
IR_PROTOCOL_SAMSUNG36 = 6
};
void sendIRcode_HAL(int protocol, std::list<std::string> commandPayloads, std::string additionalPayload) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ enum IRprotocols {
IR_PROTOCOL_SAMSUNG = 2,
IR_PROTOCOL_SONY = 3,
IR_PROTOCOL_RC5 = 4,
IR_PROTOCOL_DENON = 5
IR_PROTOCOL_DENON = 5,
IR_PROTOCOL_SAMSUNG36 = 6
};
void sendIRcode(IRprotocols protocol, std::list<std::string> commandPayloads, std::string additionalPayload);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#include <string>
#include "applicationInternal/commandHandler.h"
#include "applicationInternal/hardware/hardwarePresenter.h"
#include "device_lgsoundbar.h"

uint16_t LGSOUNDBAR_POWER;
//uint16_t LGSOUNDBAR_FUNCTION;
//uint16_t LGSOUNDBAR_FOLDER_UP;
//uint16_t LGSOUNDBAR_FOLDER_DOWN;
//uint16_t LGSOUNDBAR_OPTICAL;
//uint16_t LGSOUNDBAR_MUTE;
//uint16_t LGSOUNDBAR_VOLUME_UP;
//uint16_t LGSOUNDBAR_VOLUME_DOWN;
//uint16_t LGSOUNDBAR_AUTOPOWER;
//uint16_t LGSOUNDBAR_AV_SYNC;
//uint16_t LGSOUNDBAR_INFO;
//uint16_t LGSOUNDBAR_CURSOR_UP;
//uint16_t LGSOUNDBAR_LEFT;
//uint16_t LGSOUNDBAR_ENTER;
//uint16_t LGSOUNDBAR_RIGHT;
//uint16_t LGSOUNDBAR_CURSOR_DOWN;
//uint16_t LGSOUNDBAR_SOUND_EFFECT;
//uint16_t LGSOUNDBAR_AUTOVOLUME;
uint16_t LGSOUNDBAR_WOOFER_LEVEL;
//uint16_t LGSOUNDBAR_1;
//uint16_t LGSOUNDBAR_2;
//uint16_t LGSOUNDBAR_3;
//uint16_t LGSOUNDBAR_4;
//uint16_t LGSOUNDBAR_5;
//uint16_t LGSOUNDBAR_6;
//uint16_t LGSOUNDBAR_7;
//uint16_t LGSOUNDBAR_8;
//uint16_t LGSOUNDBAR_9;
//uint16_t LGSOUNDBAR_0;
//uint16_t LGSOUNDBAR_DOBLY_DRC;
//uint16_t LGSOUNDBAR_SLEEP;

void register_device_lgsoundbar() {
// LG SOUNDBAR Remote AKB73575421
register_command(&LGSOUNDBAR_POWER, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x34347887"}}));
//register_command(&LGSOUNDBAR_FUNCTION, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343451AE"}}));
//register_command(&LGSOUNDBAR_FOLDER_UP, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343430CF"}}));
//register_command(&LGSOUNDBAR_FOLDER_DOWN, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434B04F"}}));
//register_command(&LGSOUNDBAR_OPTICAL, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x34346D92"}}));
//register_command(&LGSOUNDBAR_MUTE, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434F807"}}));
//register_command(&LGSOUNDBAR_VOLUME_UP, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434E817"}}));
//register_command(&LGSOUNDBAR_VOLUME_DOWN, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x34346897"}}));
//register_command(&LGSOUNDBAR_AUTOPOWER, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434C936"}}));
//register_command(&LGSOUNDBAR_AV_SYNC, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x34349B64"}}));
//register_command(&LGSOUNDBAR_INFO, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434C53A"}}));
//register_command(&LGSOUNDBAR_CURSOR_UP, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434728D"}}));
//register_command(&LGSOUNDBAR_LEFT, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434609F"}}));
//register_command(&LGSOUNDBAR_ENTER, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434A05F"}}));
//register_command(&LGSOUNDBAR_RIGHT, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434E01F"}}));
//register_command(&LGSOUNDBAR_CURSOR_DOWN, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434F20D"}}));
//register_command(&LGSOUNDBAR_SOUND_EFFECT, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434F40B"}}));
//register_command(&LGSOUNDBAR_AUTOVOLUME, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343438C7"}}));
register_command(&LGSOUNDBAR_WOOFER_LEVEL, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x34346699"}}));
//register_command(&LGSOUNDBAR_1, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434827D"}}));
//register_command(&LGSOUNDBAR_2, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343442BD"}}));
//register_command(&LGSOUNDBAR_3, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434C23D"}}));
//register_command(&LGSOUNDBAR_4, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343422DD"}}));
//register_command(&LGSOUNDBAR_5, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434A25D"}}));
//register_command(&LGSOUNDBAR_6, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434629D"}}));
//register_command(&LGSOUNDBAR_7, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434E21D"}}));
//register_command(&LGSOUNDBAR_8, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343412ED"}}));
//register_command(&LGSOUNDBAR_9, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434926D"}}));
//register_command(&LGSOUNDBAR_0, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x3434D22D"}}));
//register_command(&LGSOUNDBAR_DOBLY_DRC, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343446B9"}}));
//register_command(&LGSOUNDBAR_SLEEP, makeCommandData(IR, {std::to_string(IR_PROTOCOL_SAMSUNG), {"0x343443BC"}}));
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#pragma once

extern uint16_t LGSOUNDBAR_POWER;
//extern uint16_t LGSOUNDBAR_FUNCTION;
//extern uint16_t LGSOUNDBAR_FOLDER_UP;
//extern uint16_t LGSOUNDBAR_FOLDER_DOWN;
//extern uint16_t LGSOUNDBAR_OPTICAL;
//extern uint16_t LGSOUNDBAR_MUTE;
//extern uint16_t LGSOUNDBAR_VOLUME_UP;
//extern uint16_t LGSOUNDBAR_VOLUME_DOWN;
//extern uint16_t LGSOUNDBAR_AUTOPOWER;
//extern uint16_t LGSOUNDBAR_AV_SYNC;
//extern uint16_t LGSOUNDBAR_INFO;
//extern uint16_t LGSOUNDBAR_CURSOR_UP;
//extern uint16_t LGSOUNDBAR_LEFT;
//extern uint16_t LGSOUNDBAR_ENTER;
//extern uint16_t LGSOUNDBAR_RIGHT;
//extern uint16_t LGSOUNDBAR_CURSOR_DOWN;
//extern uint16_t LGSOUNDBAR_SOUND_EFFECT;
//extern uint16_t LGSOUNDBAR_AUTOVOLUME;
extern uint16_t LGSOUNDBAR_WOOFER_LEVEL;
//extern uint16_t LGSOUNDBAR_1;
//extern uint16_t LGSOUNDBAR_2;
//extern uint16_t LGSOUNDBAR_3;
//extern uint16_t LGSOUNDBAR_4;
//extern uint16_t LGSOUNDBAR_5;
//extern uint16_t LGSOUNDBAR_6;
//extern uint16_t LGSOUNDBAR_7;
//extern uint16_t LGSOUNDBAR_8;
//extern uint16_t LGSOUNDBAR_9;
//extern uint16_t LGSOUNDBAR_0;
//extern uint16_t LGSOUNDBAR_DOBLY_DRC;
//extern uint16_t LGSOUNDBAR_SLEEP;

void register_device_lgsoundbar();
119 changes: 119 additions & 0 deletions Platformio/src/devices/TV/device_lgTV/device_lgTV.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
#include <string>
#include "applicationInternal/commandHandler.h"
#include "applicationInternal/hardware/hardwarePresenter.h"
#include "device_lgTV.h"

// Only activate the commands that are used. Every command takes 100 bytes, wether used or not.
uint16_t LGTV_POWER_TOGGLE;
uint16_t LGTV_SOURCE;
uint16_t LGTV_NUM_1;
uint16_t LGTV_NUM_2;
uint16_t LGTV_NUM_3;
uint16_t LGTV_NUM_4;
uint16_t LGTV_NUM_5;
uint16_t LGTV_NUM_6;
uint16_t LGTV_NUM_7;
uint16_t LGTV_NUM_8;
uint16_t LGTV_NUM_9;
uint16_t LGTV_NUM_0;
uint16_t LGTV_PRECH;
uint16_t LGTV_VOL_MINUS;
uint16_t LGTV_VOL_PLUS;
uint16_t LGTV_MUTE_TOGGLE;
//uint16_t LGTV_CHLIST;
uint16_t LGTV_CHANNEL_UP;
uint16_t LGTV_CHANNEL_DOWN;
uint16_t LGTV_MENU; // Q-Menu
//uint16_t LGTV_APPS;
uint16_t LGTV_GUIDE;
uint16_t LGTV_SETUP;
uint16_t LGTV_INFO;
uint16_t LGTV_UP;
uint16_t LGTV_DOWN;
uint16_t LGTV_LEFT;
uint16_t LGTV_RIGHT;
uint16_t LGTV_OK;
uint16_t LGTV_RETURN;
uint16_t LGTV_EXIT;
uint16_t LGTV_KEY_A;
uint16_t LGTV_KEY_B;
uint16_t LGTV_KEY_C;
uint16_t LGTV_KEY_D;
//uint16_t LGTV_PSIZE;
//uint16_t LGTV_ADSUBT;
//uint16_t LGTV_REWIND;
//uint16_t LGTV_PAUSE;
//uint16_t LGTV_FASTFORWARD;
//uint16_t LGTV_RECORD;
//uint16_t LGTV_PLAY;
//uint16_t LGTV_STOP;
//uint16_t LGTV_POWER_OFF;
//uint16_t LGTV_POWER_ON;
uint16_t LGTV_INPUT_HDMI_1;
uint16_t LGTV_INPUT_HDMI_2;
uint16_t LGTV_INPUT_HDMI_3;
//uint16_t LGTV_INPUT_COMPONENT;
uint16_t LGTV_INPUT_TV;
//uint16_t LGTV_SLEEP;
uint16_t LGTV_3D;
uint16_t LGTV_HOME;

void register_device_lgTV()
{
// https://github.com/natcl/studioimaginaire/blob/master/arduino_remote/ircodes.py
// https://tasmota.github.io/docs/Codes-for-IR-Remotes/#lg-55uh8509-tv
// Tested on LG 42LA6208-ZA

register_command(&LGTV_POWER_TOGGLE , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF10EF"}));
register_command(&LGTV_SOURCE , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFD02F"}));
register_command(&LGTV_NUM_1 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF8877"}));
register_command(&LGTV_NUM_2 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF48B7"}));
register_command(&LGTV_NUM_3 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFC837"}));
register_command(&LGTV_NUM_4 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF28D7"}));
register_command(&LGTV_NUM_5 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFA857"}));
register_command(&LGTV_NUM_6 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF6897"}));
register_command(&LGTV_NUM_7 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFE817"}));
register_command(&LGTV_NUM_8 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF18E7"}));
register_command(&LGTV_NUM_9 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF9867"}));
register_command(&LGTV_NUM_0 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF08F7"}));
register_command(&LGTV_PRECH , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF5BA7"}));
register_command(&LGTV_VOL_MINUS , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFC03F"}));
register_command(&LGTV_VOL_PLUS , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF40BF"}));
register_command(&LGTV_MUTE_TOGGLE , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF906F"}));
//register_command(&LGTV_CHLIST , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFCA35"}));
register_command(&LGTV_CHANNEL_UP , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF00FF"}));
register_command(&LGTV_CHANNEL_DOWN , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF807F"}));
register_command(&LGTV_MENU , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFA25D"}));
register_command(&LGTV_GUIDE , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFD52A"}));
register_command(&LGTV_SETUP , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFC23D"}));
register_command(&LGTV_INFO , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF55AA"}));
register_command(&LGTV_UP , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF02FD"}));
register_command(&LGTV_DOWN , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF827D"}));
register_command(&LGTV_LEFT , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFE01F"}));
register_command(&LGTV_RIGHT , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF609F"}));
register_command(&LGTV_OK , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF22DD"}));
register_command(&LGTV_RETURN , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF14EB"}));
register_command(&LGTV_EXIT , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFDA25"}));
register_command(&LGTV_KEY_A , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF4EB1"})); // Red
register_command(&LGTV_KEY_B , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF8E71"})); // Green
register_command(&LGTV_KEY_C , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFC639"})); // Yellow
register_command(&LGTV_KEY_D , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF8679"})); // Blue
//register_command(&LGTV_PSIZE , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF0EF1"}));
//register_command(&LGTV_ADSUBT , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF8976"}));
//register_command(&LGTV_REWIND , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFF10E"}));
//register_command(&LGTV_PAUSE , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF5DA2"}));
//register_command(&LGTV_FASTFORWARD , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF718E"}));
//register_command(&LGTV_RECORD , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFBD42"}));
//register_command(&LGTV_PLAY , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF0DF2"}));
//register_command(&LGTV_STOP , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF8D72"}));
//register_command(&LGTV_POWER_OFF , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFA35C"}));
//register_command(&LGTV_POWER_ON , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF23DC"}));
register_command(&LGTV_INPUT_HDMI_1 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF738C"}));
register_command(&LGTV_INPUT_HDMI_2 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF33CC"}));
register_command(&LGTV_INPUT_HDMI_3 , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF9768"}));
//register_command(&LGTV_INPUT_COMPONENT, makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DFFD02"}));
register_command(&LGTV_INPUT_TV , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF6B94"}));
//register_command(&LGTV_SLEEP , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF58A7"}));
register_command(&LGTV_3D , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF3BC4"}));
register_command(&LGTV_HOME , makeCommandData(IR, {std::to_string(IR_PROTOCOL_NEC), "0x20DF3EC1"}));
}
58 changes: 58 additions & 0 deletions Platformio/src/devices/TV/device_lgTV/device_lgTV.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#pragma once

// Only activate the commands that are used. Every command takes 100 bytes, wether used or not.
extern uint16_t LGTV_POWER_TOGGLE;
extern uint16_t LGTV_SOURCE;
extern uint16_t LGTV_NUM_1;
extern uint16_t LGTV_NUM_2;
extern uint16_t LGTV_NUM_3;
extern uint16_t LGTV_NUM_4;
extern uint16_t LGTV_NUM_5;
extern uint16_t LGTV_NUM_6;
extern uint16_t LGTV_NUM_7;
extern uint16_t LGTV_NUM_8;
extern uint16_t LGTV_NUM_9;
extern uint16_t LGTV_NUM_0;
extern uint16_t LGTV_PRECH;
extern uint16_t LGTV_VOL_MINUS;
extern uint16_t LGTV_VOL_PLUS;
extern uint16_t LGTV_MUTE_TOGGLE;
//extern uint16_t LGTV_CHLIST;
extern uint16_t LGTV_CHANNEL_UP;
extern uint16_t LGTV_CHANNEL_DOWN;
extern uint16_t LGTV_MENU; // Q-Menu
//extern uint16_t LGTV_APPS;
extern uint16_t LGTV_GUIDE;
extern uint16_t LGTV_SETUP;
extern uint16_t LGTV_INFO;
extern uint16_t LGTV_UP;
extern uint16_t LGTV_DOWN;
extern uint16_t LGTV_LEFT;
extern uint16_t LGTV_RIGHT;
extern uint16_t LGTV_OK;
extern uint16_t LGTV_RETURN;
extern uint16_t LGTV_EXIT;
extern uint16_t LGTV_KEY_A;
extern uint16_t LGTV_KEY_B;
extern uint16_t LGTV_KEY_C;
extern uint16_t LGTV_KEY_D;
//extern uint16_t LGTV_PSIZE;
//extern uint16_t LGTV_ADSUBT;
//extern uint16_t LGTV_REWIND;
//extern uint16_t LGTV_PAUSE;
//extern uint16_t LGTV_FASTFORWARD;
//extern uint16_t LGTV_RECORD;
//extern uint16_t LGTV_PLAY;
//extern uint16_t LGTV_STOP;
//extern uint16_t LGTV_POWER_OFF;
//extern uint16_t LGTV_POWER_ON;
extern uint16_t LGTV_INPUT_HDMI_1;
extern uint16_t LGTV_INPUT_HDMI_2;
extern uint16_t LGTV_INPUT_HDMI_3;
extern uint16_t LGTV_INPUT_TV;
//extern uint16_t LGTV_INPUT_COMPONENT;
//extern uint16_t LGTV_SLEEP;
extern uint16_t LGTV_3D;
extern uint16_t LGTV_HOME;

void register_device_lgTV();
Loading

0 comments on commit ef12879

Please sign in to comment.