Showing content from https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRPanasonicAc32.html below:
IRremoteESP8266: IRPanasonicAc32 Class Reference
Class for handling detailed Panasonic 32bit A/C messages. More...
#include <ir_Panasonic.h>
Class for handling detailed Panasonic 32bit A/C messages.
◆ IRPanasonicAc32() IRPanasonicAc32::IRPanasonicAc32 ( const uint16_t pin, const bool inverted = false
, const bool use_modulation = true
) explicit
Class constructor.
-
Parameters
-
[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?
◆ begin() void IRPanasonicAc32::begin ( void )
Set up hardware to be able to send a message.
◆ calibrate() int8_t IRPanasonicAc32::calibrate ( void ) inline
Run the calibration to calculate uSec timing offsets for this platform.
-
Returns
-
The uSec timing offset needed per modulation of the IR Led.
-
Note
-
This will produce a 65ms IR signal pulse at 38kHz. Only ever needs to be run once per object instantiation, if at all.
◆ convertFan()
Convert a stdAc::fanspeed_t enum into it's native speed.
-
Parameters
-
[in] speed The enum to be converted.
-
Returns
-
The native equivalent of the enum.
◆ convertMode()
Convert a stdAc::opmode_t enum into its native mode.
-
Parameters
-
[in] mode The enum to be converted.
-
Returns
-
The native equivalent of the enum.
◆ convertSwingV()
Convert a standard A/C vertical swing into its native setting.
-
Parameters
-
-
Returns
-
The equivalent native horizontal swing position.
◆ getFan() uint8_t IRPanasonicAc32::getFan ( void ) const
Get the current fan speed setting.
-
Returns
-
The current fan speed.
◆ getMode() uint8_t IRPanasonicAc32::getMode ( void ) const
Get the operating mode setting of the A/C.
-
Returns
-
The current operating mode setting.
◆ getPowerToggle() bool IRPanasonicAc32::getPowerToggle ( void ) const
Get the Power Toggle setting of the A/C.
-
Returns
-
true, the setting is on. false, the setting is off.
◆ getRaw() uint32_t IRPanasonicAc32::getRaw ( void ) const
Get a copy of the internal state/code for this protocol.
-
Returns
-
The code for this protocol based on the current internal state.
◆ getSwingHorizontal() bool IRPanasonicAc32::getSwingHorizontal ( void ) const
Get the current horizontal swing setting.
-
Returns
-
The current position it is set to.
◆ getSwingVertical() uint8_t IRPanasonicAc32::getSwingVertical ( void ) const
Get the current vertical swing setting.
-
Returns
-
The current position it is set to.
◆ getTemp() uint8_t IRPanasonicAc32::getTemp ( void ) const
Get the current desired temperature setting.
-
Returns
-
The current setting for temp. in degrees celsius.
◆ send()
Send the current internal state as IR messages.
-
Parameters
-
[in] repeat Nr. of times the message will be repeated.
◆ setFan() void IRPanasonicAc32::setFan ( const uint8_t speed )
Set the speed of the fan.
-
Parameters
-
[in] speed The desired setting.
◆ setMode() void IRPanasonicAc32::setMode ( const uint8_t mode )
Set the operating mode of the A/C.
-
Parameters
-
[in] mode The desired operating mode.
-
Note
-
If we get an unexpected mode, default to AUTO.
◆ setPowerToggle() void IRPanasonicAc32::setPowerToggle ( const bool on )
Set the Power Toggle setting of the A/C.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setRaw() void IRPanasonicAc32::setRaw ( const uint32_t state )
Set the internal state from a valid code for this protocol.
-
Parameters
-
[in] state A valid code for this protocol.
◆ setSwingHorizontal() void IRPanasonicAc32::setSwingHorizontal ( const bool on )
Control the horizontal swing setting.
-
Parameters
-
[in] on true, the setting is on. false, the setting is off.
◆ setSwingVertical() void IRPanasonicAc32::setSwingVertical ( const uint8_t pos )
Control the vertical swing setting.
-
Parameters
-
[in] pos The position to set the vertical swing to.
◆ setTemp() void IRPanasonicAc32::setTemp ( const uint8_t degrees )
Set the desired temperature.
-
Parameters
-
[in] degrees The temperature in degrees celsius.
◆ stateReset() void IRPanasonicAc32::stateReset ( void )
Reset the state of the remote to a known good state/sequence.
◆ toCommon()
Convert the current internal state into its stdAc::state_t equivalent.
-
Parameters
-
[in] prev Ptr to the previous state if required.
-
Returns
-
The stdAc equivalent of the native settings.
◆ toCommonFanSpeed()
Convert a native fan speed into its stdAc equivalent.
-
Parameters
-
[in] spd The native setting to be converted.
-
Returns
-
The stdAc equivalent of the native setting.
◆ toCommonMode()
Convert a native mode into its stdAc equivalent.
-
Parameters
-
[in] mode The native setting to be converted.
-
Returns
-
The stdAc equivalent of the native setting.
◆ toCommonSwingV()
Convert a native vertical swing postion to it's common equivalent.
-
Parameters
-
[in] pos A native position to convert.
-
Returns
-
The common vertical swing position.
◆ toString() String IRPanasonicAc32::toString ( void ) const
Convert the current internal state into a human readable string.
-
Returns
-
A human readable string.
◆ _ ◆ _irsend IRsend IRPanasonicAc32::_irsend private
Instance of the IR send class.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4