IRremoteESP8266
|
Class for handling detailed Hitachi 344-bit A/C messages. More...
#include <ir_Hitachi.h>
Public Member Functions | |
IRHitachiAc344 (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
Class constructor for handling detailed Hitachi_AC344 43 byte A/C messages. More... | |
void | stateReset (void) |
Reset the internal state to auto fan, cooling, 23° Celsius. More... | |
void | setRaw (const uint8_t new_code[], const uint16_t length=kHitachiAc344StateLength) |
Set the internal state from a valid code for this protocol. More... | |
stdAc::state_t | toCommon (void) |
Convert the current internal state into its stdAc::state_t equivilant. More... | |
void | send (const uint16_t repeat=kHitachiAcDefaultRepeat) |
Create and send the IR message to the A/C. More... | |
void | setSwingV (const bool on) |
Control the vertical swing setting. More... | |
bool | getSwingV (void) |
Get the current vertical swing setting. More... | |
void | setSwingH (const uint8_t position) |
Control the horizontal swing setting. More... | |
uint8_t | getSwingH (void) |
Get the current horizontal swing setting. More... | |
String | toString (void) |
Convert the internal state into a human readable string. More... | |
Public Member Functions inherited from IRHitachiAc424 | |
IRHitachiAc424 (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
Class constructor. More... | |
int8_t | calibrate (void) |
Run the calibration to calculate uSec timing offsets for this platform. More... | |
void | begin (void) |
Set up hardware to be able to send a message. More... | |
void | on (void) |
Change the power setting to On. More... | |
void | off (void) |
Change the power setting to Off. More... | |
void | setPower (const bool on) |
Change the power setting. More... | |
bool | getPower (void) |
Get the value of the current power setting. More... | |
void | setTemp (const uint8_t temp, bool setPrevious=true) |
Set the temperature. More... | |
uint8_t | getTemp (void) |
Get the current temperature setting. More... | |
void | setFan (const uint8_t speed) |
Set the speed of the fan. More... | |
uint8_t | getFan (void) |
Get the current fan speed setting. More... | |
uint8_t | getButton (void) |
Get the Button/Command setting of the A/C. More... | |
void | setButton (const uint8_t button) |
Set the Button/Command pressed setting of the A/C. More... | |
void | setSwingVToggle (const bool on) |
Set the Vertical Swing toggle setting of the A/C. More... | |
bool | getSwingVToggle (void) |
Get the Vertical Swing toggle setting of the A/C. More... | |
void | setMode (const uint8_t mode) |
Set the operating mode of the A/C. More... | |
uint8_t | getMode (void) |
Get the operating mode setting of the A/C. More... | |
uint8_t * | getRaw (void) |
Get a PTR to the internal state/code for this protocol. More... | |
uint8_t | convertMode (const stdAc::opmode_t mode) |
Convert a stdAc::opmode_t enum into its native mode. More... | |
uint8_t | convertFan (const stdAc::fanspeed_t speed) |
Convert a stdAc::fanspeed_t enum into it's native speed. More... | |
String | toString (void) |
Convert the internal state into a human readable string. More... | |
Static Public Member Functions | |
static uint8_t | convertSwingH (const stdAc::swingh_t position) |
Convert a standard A/C horizontal swing into its native setting. More... | |
static stdAc::swingh_t | toCommonSwingH (const uint8_t pos) |
Convert a native horizontal swing postion to it's common equivalent. More... | |
Static Public Member Functions inherited from IRHitachiAc424 | |
static stdAc::opmode_t | toCommonMode (const uint8_t mode) |
Convert a native mode into its stdAc equivilant. More... | |
static stdAc::fanspeed_t | toCommonFanSpeed (const uint8_t speed) |
Convert a native fan speed into its stdAc equivilant. More... | |
Class for handling detailed Hitachi 344-bit A/C messages.
|
explicit |
Class constructor for handling detailed Hitachi_AC344 43 byte A/C messages.
[in] | pin | GPIO to be used when sending. |
[in] | inverted | Is the output signal to be inverted? |
[in] | use_modulation | Is frequency modulation to be used? |
|
static |
Convert a standard A/C horizontal swing into its native setting.
[in] | position | A stdAc::swingh_t position to convert. |
uint8_t IRHitachiAc344::getSwingH | ( | void | ) |
Get the current horizontal swing setting.
bool IRHitachiAc344::getSwingV | ( | void | ) |
Get the current vertical swing setting.
|
virtual |
Create and send the IR message to the A/C.
[in] | repeat | Nr. of times to repeat the message. |
Reimplemented from IRHitachiAc424.
|
virtual |
Set the internal state from a valid code for this protocol.
[in] | new_code | A valid code for this protocol. |
[in] | length | Size (in bytes) of the code for this protocol. |
Reimplemented from IRHitachiAc424.
void IRHitachiAc344::setSwingH | ( | const uint8_t | position | ) |
Control the horizontal swing setting.
[in] | position | The position to set the horizontal swing to. |
void IRHitachiAc344::setSwingV | ( | const bool | on | ) |
Control the vertical swing setting.
[in] | on | True, turns on the feature. False, turns off the feature. |
|
virtual |
Reset the internal state to auto fan, cooling, 23° Celsius.
Reimplemented from IRHitachiAc424.
|
virtual |
Convert the current internal state into its stdAc::state_t equivilant.
Reimplemented from IRHitachiAc424.
|
static |
Convert a native horizontal swing postion to it's common equivalent.
[in] | pos | A native position to convert. |
String IRHitachiAc344::toString | ( | void | ) |
Convert the internal state into a human readable string.