Updated HeatpumpIR, to a version which uses the native Arduino IDE 1.6 PROGMEM definitions
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
#include <PanasonicCKPHeatpumpIR.h>
|
||||
#include <Timer.h>
|
||||
#include <Timer.h> // https://github.com/JChristensen/Timer
|
||||
|
||||
/*
|
||||
This schema demonstrates how to control the Panasonic CKP power state change. The CKP does not have discrete
|
||||
@@ -34,8 +36,8 @@ void setup()
|
||||
heatpumpIR->send(irSender, POWER_ON, MODE_HEAT, FAN_2, 24, VDIR_UP, HDIR_AUTO);
|
||||
Serial.println("The heatpump should have beeped, and the TIMER led should be ON");
|
||||
|
||||
timer.after(60000, panasonicIsOn, NULL); // Called after 1 minute
|
||||
timer.after(120000, panasonicCancelTimer, NULL); // Called after 2 minutes
|
||||
timer.after(60000, panasonicIsOn); // Called after 1 minute
|
||||
timer.after(120000, panasonicCancelTimer); // Called after 2 minutes
|
||||
|
||||
}
|
||||
|
||||
@@ -44,12 +46,12 @@ void loop()
|
||||
timer.update();
|
||||
}
|
||||
|
||||
void panasonicIsOn(void *context)
|
||||
void panasonicIsOn()
|
||||
{
|
||||
Serial.println("The heatpump should should turn ON by now, the TIMER led is still ON");
|
||||
}
|
||||
|
||||
void panasonicCancelTimer(void *context)
|
||||
void panasonicCancelTimer()
|
||||
{
|
||||
heatpumpIR->sendPanasonicCKPCancelTimer(irSender);
|
||||
Serial.println("The TIMER led should now be OFF");
|
||||
|
||||
Reference in New Issue
Block a user