| 113 | }; |
| 114 | |
| 115 | class Aircondition_LG { |
| 116 | public: |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected