IRremote
Air conditioner special code

Classes

union  LGProtocol
 
class  Aircondition_LG
 

Macros

#define LG_ADDRESS   0x88
 
#define LG_SWITCH_ON_MASK   0x0800
 
#define LG_MODE_COOLING   0x0800
 
#define LG_MODE_DEHUMIDIFIYING   0x0990
 
#define LG_MODE_FAN   0x0A30
 
#define LG_MODE_AUTO   0x0B00
 
#define LG_MODE_HEATING   0x0C00
 
#define LG_ENERGY_SAVING_ON   0x1004
 
#define LG_ENERGY_SAVING_OFF   0x1005
 
#define LG_JET_ON   0x1008
 
#define LG_WALL_SWING_ON   0x1314
 
#define LG_WALL_SWING_OFF   0x1315
 
#define LG_SWING_ON   0x1316
 
#define LG_SWING_OFF   0x1317
 
#define LG_TIMER_ON   0x8000
 
#define LG_TIMER_OFF   0x9000
 
#define LG_SLEEP   0xA000
 
#define LG_CLEAR_ALL   0xB000
 
#define LG_POWER_DOWN   0xC005
 
#define LG_LIGHT   0xC00A
 
#define LG_AUTO_CLEAN_ON   0xC00B
 
#define LG_AUTO_CLEAN_OFF   0xC00C
 
#define LG_COMMAND_OFF   '0'
 
#define LG_COMMAND_ON   '1'
 
#define LG_COMMAND_SWING   's'
 
#define LG_COMMAND_AUTO_CLEAN   'a'
 
#define LG_COMMAND_JET   'j'
 
#define LG_COMMAND_ENERGY   'e'
 
#define LG_COMMAND_LIGHT   'l'
 
#define LG_COMMAND_FAN_SPEED   'f'
 
#define LG_COMMAND_TEMPERATURE   't'
 
#define LG_COMMAND_TEMPERATURE_PLUS   '+'
 
#define LG_COMMAND_TEMPERATURE_MINUS   '-'
 
#define LG_COMMAND_MODE   'm'
 
#define LG_COMMAND_SLEEP   'S'
 
#define LG_COMMAND_TIMER_ON   'T'
 
#define LG_COMMAND_TIMER_OFF   'O'
 
#define LG_COMMAND_CLEAR_ALL   'C'
 
#define AC_MODE_COOLING   'c'
 
#define AC_MODE_DEHUMIDIFIYING   'd'
 
#define AC_MODE_FAN   'f'
 
#define AC_MODE_AUTO   'a'
 
#define AC_MODE_HEATING   'h'
 
#define SIZE_OF_FAN_SPEED_MAPPING_TABLE   4
 

Functions

void Aircondition_LG::setType (bool aIsWallType)
 
void Aircondition_LG::printMenu (Print *aSerial)
 
bool Aircondition_LG::sendCommandAndParameter (char aCommand, int aParameter)
 
void Aircondition_LG::sendIRCommand (uint16_t aCommand)
 
void Aircondition_LG::sendTemperatureFanSpeedAndMode ()
 

Variables

const int AC_FAN_TOWER [SIZE_OF_FAN_SPEED_MAPPING_TABLE] = { 0, 4, 6, 6 }
 
const int AC_FAN_WALL [SIZE_OF_FAN_SPEED_MAPPING_TABLE] = { 0, 2, 4, 5 }
 

Detailed Description

Macro Definition Documentation

◆ AC_MODE_AUTO

#define AC_MODE_AUTO   'a'

Definition at line 98 of file ac_LG.h.

◆ AC_MODE_COOLING

#define AC_MODE_COOLING   'c'

Definition at line 95 of file ac_LG.h.

◆ AC_MODE_DEHUMIDIFIYING

#define AC_MODE_DEHUMIDIFIYING   'd'

Definition at line 96 of file ac_LG.h.

◆ AC_MODE_FAN

#define AC_MODE_FAN   'f'

Definition at line 97 of file ac_LG.h.

◆ AC_MODE_HEATING

#define AC_MODE_HEATING   'h'

Definition at line 99 of file ac_LG.h.

◆ LG_ADDRESS

#define LG_ADDRESS   0x88

Definition at line 43 of file ac_LG.h.

◆ LG_AUTO_CLEAN_OFF

#define LG_AUTO_CLEAN_OFF   0xC00C

Definition at line 70 of file ac_LG.h.

◆ LG_AUTO_CLEAN_ON

#define LG_AUTO_CLEAN_ON   0xC00B

Definition at line 69 of file ac_LG.h.

◆ LG_CLEAR_ALL

#define LG_CLEAR_ALL   0xB000

Definition at line 66 of file ac_LG.h.

◆ LG_COMMAND_AUTO_CLEAN

#define LG_COMMAND_AUTO_CLEAN   'a'

Definition at line 78 of file ac_LG.h.

◆ LG_COMMAND_CLEAR_ALL

#define LG_COMMAND_CLEAR_ALL   'C'

Definition at line 90 of file ac_LG.h.

◆ LG_COMMAND_ENERGY

#define LG_COMMAND_ENERGY   'e'

Definition at line 80 of file ac_LG.h.

◆ LG_COMMAND_FAN_SPEED

#define LG_COMMAND_FAN_SPEED   'f'

Definition at line 82 of file ac_LG.h.

◆ LG_COMMAND_JET

#define LG_COMMAND_JET   'j'

Definition at line 79 of file ac_LG.h.

◆ LG_COMMAND_LIGHT

#define LG_COMMAND_LIGHT   'l'

Definition at line 81 of file ac_LG.h.

◆ LG_COMMAND_MODE

#define LG_COMMAND_MODE   'm'

Definition at line 86 of file ac_LG.h.

◆ LG_COMMAND_OFF

#define LG_COMMAND_OFF   '0'

Definition at line 75 of file ac_LG.h.

◆ LG_COMMAND_ON

#define LG_COMMAND_ON   '1'

Definition at line 76 of file ac_LG.h.

◆ LG_COMMAND_SLEEP

#define LG_COMMAND_SLEEP   'S'

Definition at line 87 of file ac_LG.h.

◆ LG_COMMAND_SWING

#define LG_COMMAND_SWING   's'

Definition at line 77 of file ac_LG.h.

◆ LG_COMMAND_TEMPERATURE

#define LG_COMMAND_TEMPERATURE   't'

Definition at line 83 of file ac_LG.h.

◆ LG_COMMAND_TEMPERATURE_MINUS

#define LG_COMMAND_TEMPERATURE_MINUS   '-'

Definition at line 85 of file ac_LG.h.

◆ LG_COMMAND_TEMPERATURE_PLUS

#define LG_COMMAND_TEMPERATURE_PLUS   '+'

Definition at line 84 of file ac_LG.h.

◆ LG_COMMAND_TIMER_OFF

#define LG_COMMAND_TIMER_OFF   'O'

Definition at line 89 of file ac_LG.h.

◆ LG_COMMAND_TIMER_ON

#define LG_COMMAND_TIMER_ON   'T'

Definition at line 88 of file ac_LG.h.

◆ LG_ENERGY_SAVING_OFF

#define LG_ENERGY_SAVING_OFF   0x1005

Definition at line 57 of file ac_LG.h.

◆ LG_ENERGY_SAVING_ON

#define LG_ENERGY_SAVING_ON   0x1004

Definition at line 56 of file ac_LG.h.

◆ LG_JET_ON

#define LG_JET_ON   0x1008

Definition at line 58 of file ac_LG.h.

◆ LG_LIGHT

#define LG_LIGHT   0xC00A

Definition at line 68 of file ac_LG.h.

◆ LG_MODE_AUTO

#define LG_MODE_AUTO   0x0B00

Definition at line 54 of file ac_LG.h.

◆ LG_MODE_COOLING

#define LG_MODE_COOLING   0x0800

Definition at line 51 of file ac_LG.h.

◆ LG_MODE_DEHUMIDIFIYING

#define LG_MODE_DEHUMIDIFIYING   0x0990

Definition at line 52 of file ac_LG.h.

◆ LG_MODE_FAN

#define LG_MODE_FAN   0x0A30

Definition at line 53 of file ac_LG.h.

◆ LG_MODE_HEATING

#define LG_MODE_HEATING   0x0C00

Definition at line 55 of file ac_LG.h.

◆ LG_POWER_DOWN

#define LG_POWER_DOWN   0xC005

Definition at line 67 of file ac_LG.h.

◆ LG_SLEEP

#define LG_SLEEP   0xA000

Definition at line 65 of file ac_LG.h.

◆ LG_SWING_OFF

#define LG_SWING_OFF   0x1317

Definition at line 62 of file ac_LG.h.

◆ LG_SWING_ON

#define LG_SWING_ON   0x1316

Definition at line 61 of file ac_LG.h.

◆ LG_SWITCH_ON_MASK

#define LG_SWITCH_ON_MASK   0x0800

Definition at line 50 of file ac_LG.h.

◆ LG_TIMER_OFF

#define LG_TIMER_OFF   0x9000

Definition at line 64 of file ac_LG.h.

◆ LG_TIMER_ON

#define LG_TIMER_ON   0x8000

Definition at line 63 of file ac_LG.h.

◆ LG_WALL_SWING_OFF

#define LG_WALL_SWING_OFF   0x1315

Definition at line 60 of file ac_LG.h.

◆ LG_WALL_SWING_ON

#define LG_WALL_SWING_ON   0x1314

Definition at line 59 of file ac_LG.h.

◆ SIZE_OF_FAN_SPEED_MAPPING_TABLE

#define SIZE_OF_FAN_SPEED_MAPPING_TABLE   4

Definition at line 61 of file ac_LG.hpp.

Function Documentation

◆ printMenu()

void Aircondition_LG::printMenu ( Print *  aSerial)

Definition at line 72 of file ac_LG.hpp.

◆ sendCommandAndParameter()

bool Aircondition_LG::sendCommandAndParameter ( char  aCommand,
int  aParameter 
)

Definition at line 102 of file ac_LG.hpp.

◆ sendIRCommand()

void Aircondition_LG::sendIRCommand ( uint16_t  aCommand)

Definition at line 252 of file ac_LG.hpp.

◆ sendTemperatureFanSpeedAndMode()

void Aircondition_LG::sendTemperatureFanSpeedAndMode ( )

Definition at line 267 of file ac_LG.hpp.

◆ setType()

void Aircondition_LG::setType ( bool  aIsWallType)

Definition at line 64 of file ac_LG.hpp.

Variable Documentation

◆ AC_FAN_TOWER

const int AC_FAN_TOWER[SIZE_OF_FAN_SPEED_MAPPING_TABLE] = { 0, 4, 6, 6 }

Definition at line 61 of file ac_LG.hpp.

◆ AC_FAN_WALL

const int AC_FAN_WALL[SIZE_OF_FAN_SPEED_MAPPING_TABLE] = { 0, 2, 4, 5 }

Definition at line 62 of file ac_LG.hpp.