Download this file
#include 
#include 
#include "heater_controller_slave.h"
#include "listener.h"
#include "speaker.h"
#include "protocol.h"


Speaker speaker;
Protocol protocol(&speaker);
Listener listener(&protocol);

Task * tasks[] = { &listener, &speaker };
TaskScheduler scheduler(tasks, NB_ELEMENTS(tasks));

void setup() {
  Serial.begin(57600);
  rf12_initialize(SLAVE_ID, RF12_868MHZ, HEATER_GROUP);
}

void loop() {
  scheduler.run(); // infinite loop
}