Download this file
#include 
#include 
#include "heater_controller_master.h"
#include "listener.h"
#include "speaker.h"
#include "protocol.h"
#include "ui.h"

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

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

void setup() {
  Serial.begin(57600);
  rf12_initialize(MASTER_ID, RF12_868MHZ, HEATER_GROUP);
  speaker.set_protocol(&protocol);
}

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