MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / Aircondition_LG

Class Aircondition_LG

src/ac_LG.h:115–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113};
114
115class Aircondition_LG {
116public:
117 bool sendCommandAndParameter(char aCommand, int aParameter);
118 void setType(bool aIsWallType);
119 void printMenu(Print *aSerial);
120 void sendIRCommand(uint16_t aCommand);
121 void sendTemperatureFanSpeedAndMode();
122 /*
123 * Internal state of the air condition
124 */
125#define LG_IS_WALL_TYPE true
126#define LG_IS_TOWER_TYPE false
127 bool ACIsWallType; // false : TOWER, true : WALL
128 bool PowerIsOn;
129
130 // These value are encoded and sent by AC_LG_SendCommandAndParameter()
131 uint8_t FanIntensity = 1; // 0 -> low, 4 high, 5 -> cycle
132 uint8_t Temperature = 22; // temperature : 18 ~ 30
133 uint8_t Mode = AC_MODE_COOLING;
134};
135
136/** @}*/
137#endif // _AC_LG_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected