 /**
- * @file CosaSensor.ino
+ * @file CosaVoltmeter.ino
  * @version 1.0
  *
  * @section License

 *
 * @section Diagram
 *
 *    Sensor              Probe
 *  +--------+          +--------+
 *  | sensor |          | probe  |
 *  |        |---[s1]-->|        |

#include "Cosa/Trace.hh"
#include "Cosa/IOStream/Driver/UART.hh"

#include "Cosa/UML/Voltmeter.hh"
#include "Cosa/UML/Probe.hh"
#include "Cosa/UML/Controller.hh"

using namespace UML;

// Forward declaration of the connectors
extern Voltmeter::Sample s1;

// The capsules with data dependencies (connectors)
Voltmeter sensor(Board::A0, s1, 1024);

const char probe_name[] __PROGMEM = "probe";
Probe<Voltmeter::Sample> probe((str_P) probe_name, s1);

// The wiring; control dependencies (capsules)
Capsule* const s1_listeners[] __PROGMEM = { &probe, NULL };
Voltmeter::Sample s1(s1_listeners, 0);

void setup()
{
