Sharp/IVT support, heatpumps should use 38 kHz carrier frequency
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
Sharp AY-ZP40KR heatpump control (remote control P/N CRMC-A788JBEZ)
|
||||
Probably also works on IVT (as those are Sharp units with different branding)
|
||||
|
||||
Also see: https://github.com/skarlsso/IRRemoteIVT/blob/master/IRRemoteIVT.ino
|
||||
*/
|
||||
#ifndef SharpHeatpumpIR_h
|
||||
#define SharpHeatpumpIR_h
|
||||
|
||||
#include <HeatpumpIR.h>
|
||||
|
||||
|
||||
// Sharp timing constants
|
||||
#define SHARP_AIRCON1_HDR_MARK 3540 // 3820
|
||||
#define SHARP_AIRCON1_HDR_SPACE 1720 // 1680
|
||||
#define SHARP_AIRCON1_BIT_MARK 460 // 420
|
||||
#define SHARP_AIRCON1_ONE_SPACE 1400 // 1250
|
||||
#define SHARP_AIRCON1_ZERO_SPACE 430 // 330
|
||||
|
||||
// Sharp codes
|
||||
#define SHARP_AIRCON1_MODE_HEAT 0x01
|
||||
#define SHARP_AIRCON1_MODE_COOL 0x02
|
||||
#define SHARP_AIRCON1_MODE_DRY 0x03
|
||||
#define SHARP_AIRCON1_MODE_OFF 0x21 // Power OFF
|
||||
#define SHARP_AIRCON1_MODE_ON 0x31 // Power ON
|
||||
#define SHARP_AIRCON1_FAN_AUTO 0x20 // Fan speed
|
||||
#define SHARP_AIRCON1_FAN1 0x30
|
||||
#define SHARP_AIRCON1_FAN2 0x50
|
||||
#define SHARP_AIRCON1_FAN3 0x70
|
||||
|
||||
|
||||
class SharpHeatpumpIR : public HeatpumpIR
|
||||
{
|
||||
public:
|
||||
SharpHeatpumpIR();
|
||||
void send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingModeCmd, uint8_t fanSpeedCmd, uint8_t temperatureCmd, uint8_t swingVCmd, uint8_t swingHCmd);
|
||||
|
||||
private:
|
||||
void sendSharp(IRSender& IR, uint8_t powerMode, uint8_t operatingMode, uint8_t fanSpeed, uint8_t temperature);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user