Go to the documentation of this file.
37 #if defined(INFO) && !defined(LOCAL_INFO)
60 #define SIZE_OF_FAN_SPEED_MAPPING_TABLE 4
66 #if defined(LOCAL_INFO)
67 Serial.print(F(
"Set wall type to "));
68 Serial.println(aIsWallType);
75 aSerial->println(F(
"Type command and optional parameter without a separator"));
76 aSerial->println(F(
"0 Off"));
77 aSerial->println(F(
"1 On"));
78 aSerial->println(F(
"s Swing <0 or 1>"));
79 aSerial->println(F(
"a Auto clean <0 or 1>"));
80 aSerial->println(F(
"j Jet on"));
81 aSerial->println(F(
"e Energy saving <0 or 1>"));
82 aSerial->println(F(
"l Lights toggle"));
83 aSerial->println(F(
"f Fan speed <0 to 2 or 3 for cycle>"));
84 aSerial->println(F(
"t Temperature <18 to 30> degree"));
85 aSerial->println(F(
"+ Temperature + 1"));
86 aSerial->println(F(
"- Temperature - 1"));
87 aSerial->println(F(
"m <c(ool) or a(uto) or d(ehumidifying) or h(eating) or f(an) mode>"));
88 aSerial->println(F(
"S Sleep after <0 to 420> minutes"));
89 aSerial->println(F(
"T Timer on after <0 to 1439> minutes"));
90 aSerial->println(F(
"O Timer off after <0 to 1439> minutes"));
91 aSerial->println(F(
"C Clear all timer and sleep"));
92 aSerial->println(F(
"e.g. \"s1\" or \"t23\" or \"mc\" or \"O60\" or \"+\""));
93 aSerial->println(F(
"No plausibility check is made!"));
153 if (aParameter < 0) {
160 Mode = aParameter +
'0';
212 if (18 <= aParameter && aParameter <= 30) {
222 if (aParameter <= 420) {
231 if (aParameter <= 1439) {
239 if (aParameter <= 1439) {
254 #if defined(LOCAL_INFO)
255 Serial.print(F(
"Send code=0x"));
256 Serial.print(aCommand, HEX);
257 Serial.print(F(
" | 0b"));
258 Serial.println(aCommand, BIN);
270 #if defined(LOCAL_INFO)
271 Serial.print(F(
"Send temperature="));
272 Serial.print(tTemperature);
273 Serial.print(F(
" fan intensity="));
275 Serial.print(F(
" mode="));
276 Serial.println((
char )
Mode);
280 tIRCommand.
UWord = 0;
#define LG_COMMAND_AUTO_CLEAN
#define LG_COMMAND_TEMPERATURE
Union to specify parts / manifestations of a 16 bit Word without casts and shifts.
#define LG_WALL_SWING_OFF
#define LG_COMMAND_FAN_SPEED
struct WordUnion::@2 UByte
void setType(bool aIsWallType)
#define LG_COMMAND_TIMER_OFF
#define LG_ENERGY_SAVING_OFF
#define LG_COMMAND_ENERGY
#define AC_MODE_DEHUMIDIFIYING
#define IR_DEBUG_PRINT(...)
If DEBUG, print the arguments, otherwise do nothing.
void sendTemperatureFanSpeedAndMode()
#define SIZE_OF_FAN_SPEED_MAPPING_TABLE
void sendIRCommand(uint16_t aCommand)
#define LG_SWITCH_ON_MASK
const int AC_FAN_TOWER[SIZE_OF_FAN_SPEED_MAPPING_TABLE]
bool sendCommandAndParameter(char aCommand, int aParameter)
#define LG_COMMAND_CLEAR_ALL
#define LG_COMMAND_TIMER_ON
#define LG_MODE_DEHUMIDIFIYING
#define LG_ENERGY_SAVING_ON
#define LG_AUTO_CLEAN_OFF
#define LG_COMMAND_TEMPERATURE_MINUS
#define LG_COMMAND_TEMPERATURE_PLUS
const int AC_FAN_WALL[SIZE_OF_FAN_SPEED_MAPPING_TABLE]
#define IR_DEBUG_PRINTLN(...)
If DEBUG, print the arguments as a line, otherwise do nothing.
Contains all declarations required for the interface to IRremote. Could not be named IRremote....
void printMenu(Print *aSerial)
void sendLG2(uint8_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats)
LG2 uses a special repeat.