HeatpumpIR library + sensors example to send IR commands to heatpumps
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "Timer.h"
|
||||
|
||||
Timer t;
|
||||
int pin = 13;
|
||||
|
||||
void setup()
|
||||
{
|
||||
pinMode(pin, OUTPUT);
|
||||
t.pulse(pin, 10 * 1000, HIGH); // 10 seconds
|
||||
// t.pulse(pin, 10 * 60 * 1000, HIGH); // 10 minutes
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
t.update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user