A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://crankyoldgit.github.io/IRremoteESP8266/doxygen/html/classIRGreeAC.html below:

IRremoteESP8266: IRGreeAC Class Reference

Class for handling detailed Gree A/C messages. More...

#include <ir_Gree.h>

Class for handling detailed Gree A/C messages.

◆ IRGreeAC()

Class constructor.

Parameters
[in] pin GPIO to be used when sending. [in] model The enum of the model to be emulated. [in] inverted Is the output signal to be inverted? [in] use_modulation Is frequency modulation to be used?
◆ begin() void IRGreeAC::begin ( void  )

Set up hardware to be able to send a message.

◆ calibrate() int8_t IRGreeAC::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.
◆ checksum()

Calculate and set the checksum values for the internal state.

Parameters
[in] length The size/length of the state array to fix the checksum of.
◆ 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.
◆ convertSwingH()

Convert a stdAc::swingh_t enum into it's native setting.

Parameters
[in] swingh The enum to be converted.
Returns
The native equivalent of the enum.
◆ convertSwingV()

Convert a stdAc::swingv_t enum into it's native setting.

Parameters
[in] swingv The enum to be converted.
Returns
The native equivalent of the enum.
◆ fixup() void IRGreeAC::fixup ( void  ) private

Fix up the internal state so it is correct.

Note
Internal use only.
◆ getDisplayTempSource() uint8_t IRGreeAC::getDisplayTempSource ( void  ) const

Get the temperature display mode. i.e. Internal, External temperature sensing.

Returns
The current temp source being displayed.
◆ getEcono() bool IRGreeAC::getEcono ( void  ) const

Get the Econo setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getFan() uint8_t IRGreeAC::getFan ( void  ) const

Get the current fan speed setting.

Returns
The current fan speed.
◆ getIFeel() bool IRGreeAC::getIFeel ( void  ) const

Get the IFeel setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getLight() bool IRGreeAC::getLight ( void  ) const

Get the Light (LED) setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getMode() uint8_t IRGreeAC::getMode ( void  ) const

Get the operating mode setting of the A/C.

Returns
The current operating mode setting.
◆ getModel()

Get/Detect the model of the A/C.

Returns
The enum of the compatible model.
◆ getPower() bool IRGreeAC::getPower ( void  ) const ◆ getRaw() uint8_t * IRGreeAC::getRaw ( void  )

Get a PTR to the internal state/code for this protocol.

Returns
PTR to a code for this protocol based on the current internal state.
◆ getSleep() bool IRGreeAC::getSleep ( void  ) const

Get the Sleep setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getSwingHorizontal() uint8_t IRGreeAC::getSwingHorizontal ( void  ) const

Get the Horizontal Swing position setting of the A/C.

Returns
The native position/mode.
◆ getSwingVerticalAuto() bool IRGreeAC::getSwingVerticalAuto ( void  ) const

Get the Vertical Swing Automatic mode setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getSwingVerticalPosition() uint8_t IRGreeAC::getSwingVerticalPosition ( void  ) const

Get the Vertical Swing position setting of the A/C.

Returns
The native position/mode.
◆ getTemp() uint8_t IRGreeAC::getTemp ( void  ) const

Get the set temperature.

Returns
The temperature in degrees in the current units (C/F) set.
◆ getTimer() uint16_t IRGreeAC::getTimer ( void  ) const

Get the timer time value from the A/C.

Returns
The number of minutes the timer is set for.
◆ getTimerEnabled() bool IRGreeAC::getTimerEnabled ( void  ) const private

Get the timer enabled setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getTurbo() bool IRGreeAC::getTurbo ( void  ) const

Get the Turbo setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getUseFahrenheit() bool IRGreeAC::getUseFahrenheit ( void  ) const

Get the default temperature units in use.

Returns
true is Fahrenheit, false is Celsius.
◆ getWiFi() bool IRGreeAC::getWiFi ( void  ) const

Get the Wifi (enabled) setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ getXFan() bool IRGreeAC::getXFan ( void  ) const

Get the XFan (Mould) setting of the A/C.

Returns
true, the setting is on. false, the setting is off.
◆ off() void IRGreeAC::off ( void  )

Change the power setting to Off.

◆ on() void IRGreeAC::on ( void  )

Change the power setting to On.

◆ send()

Send the current internal state as an IR message.

Parameters
[in] repeat Nr. of times the message will be repeated.
◆ setDisplayTempSource() void IRGreeAC::setDisplayTempSource ( const uint8_t  mode )

Set temperature display mode. i.e. Internal, External temperature sensing.

Parameters
[in] mode The desired temp source to display.
Note
In order for the A/C unit properly accept these settings. You must cycle (send) in the following order: kGreeDisplayTempOff(0) -> kGreeDisplayTempSet(1) -> kGreeDisplayTempInside(2) ->kGreeDisplayTempOutside(3) -> kGreeDisplayTempOff(0). The unit will no behave correctly if the changes of this setting are sent out of order.
See also
https://github.com/crankyoldgit/IRremoteESP8266/issues/1118#issuecomment-628242152
◆ setEcono() void IRGreeAC::setEcono ( const bool  on )

Set the Econo setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ setFan() void IRGreeAC::setFan ( const uint8_t  speed )

Set the speed of the fan.

Parameters
[in] speed The desired setting. 0 is auto, 1-3 is the speed.
◆ setIFeel() void IRGreeAC::setIFeel ( const bool  on )

Set the IFeel setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ setLight() void IRGreeAC::setLight ( const bool  on )

Set the Light (LED) setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ setMode() void IRGreeAC::setMode ( const uint8_t  new_mode )

Set the operating mode of the A/C.

Parameters
[in] new_mode The desired operating mode.
◆ setModel()

Set the model of the A/C to emulate.

Parameters
[in] model The enum of the appropriate model.
◆ setPower() void IRGreeAC::setPower ( const bool  on ) ◆ setRaw() void IRGreeAC::setRaw ( const uint8_t  new_code[] )

Set the internal state from a valid code for this protocol.

Parameters
[in] new_code A valid code for this protocol.
◆ setSleep() void IRGreeAC::setSleep ( const bool  on )

Set the Sleep setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ setSwingHorizontal() void IRGreeAC::setSwingHorizontal ( const uint8_t  position )

Set the Horizontal Swing mode of the A/C.

Parameters
[in] position The position/mode to set the vanes to.
◆ setSwingVertical() void IRGreeAC::setSwingVertical ( const bool  automatic, const uint8_t  position  )

Set the Vertical Swing mode of the A/C.

Parameters
[in] automatic Do we use the automatic setting? [in] position The position/mode to set the vanes to.
◆ setTemp() void IRGreeAC::setTemp ( const uint8_t  temp, const bool  fahrenheit = false  )

Set the temp. in degrees.

Parameters
[in] temp Desired temperature in Degrees. [in] fahrenheit Use units of Fahrenheit and set that as units used. false is Celsius (Default), true is Fahrenheit.
Note
The unit actually works in Celsius with a special optional "extra degree" when sending Fahrenheit.
◆ setTimer() void IRGreeAC::setTimer ( const uint16_t  minutes )

Set the A/C's timer to turn off in X many minutes.

Parameters
[in] minutes The number of minutes the timer should be set for.
Note
Stores time internally in 30 min units. e.g. 5 mins means 0 (& Off), 95 mins is 90 mins (& On). Max is 24 hours.
◆ setTimerEnabled() void IRGreeAC::setTimerEnabled ( const bool  on ) private

Set the timer enable setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ setTurbo() void IRGreeAC::setTurbo ( const bool  on )

Set the Turbo setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ setUseFahrenheit() void IRGreeAC::setUseFahrenheit ( const bool  on )

Set the default temperature units to use.

Parameters
[in] on Use Fahrenheit as the units. true is Fahrenheit, false is Celsius.
◆ setWiFi() void IRGreeAC::setWiFi ( const bool  on )

Set the Wifi (enabled) setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ setXFan() void IRGreeAC::setXFan ( const bool  on )

Set the XFan (Mould) setting of the A/C.

Parameters
[in] on true, the setting is on. false, the setting is off.
◆ stateReset() void IRGreeAC::stateReset ( void  )

Reset the internal state to a fixed known good state.

◆ toCommon()

Convert the current internal state into its stdAc::state_t equivalent.

Returns
The stdAc equivalent of the native settings.
◆ toCommonFanSpeed()

Convert a native fan speed into its stdAc equivalent.

Parameters
[in] speed 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.
◆ toCommonSwingH()

Convert a native Horizontal Swing into its stdAc equivalent.

Parameters
[in] pos The native setting to be converted.
Returns
The stdAc equivalent of the native setting.
◆ toCommonSwingV()

Convert a native Vertical Swing into its stdAc equivalent.

Parameters
[in] pos The native setting to be converted.
Returns
The stdAc equivalent of the native setting.
◆ toString() String IRGreeAC::toString ( void  )

Convert the current internal state into a human readable string.

Returns
A human readable string.
◆ validChecksum() bool IRGreeAC::validChecksum ( const uint8_t  state[], const uint16_t  length = kGreeStateLength  ) static

Verify the checksum is valid for a given state.

Parameters
[in] state The array to verify the checksum of. [in] length The length of the state array.
Returns
true, if the state has a valid checksum. Otherwise, false.
◆ _ ◆ _irsend

Instance of the IR send class.

◆ _model

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