   return (NULL);
 }
 
+IOStream cout(&uart);
+
 void setup()
 {
   // Bind the UART to en output stream for print out
-  IOStream cout(&uart);
   uart.begin(9600);
+  Watchdog::begin();
   cout << PSTR("CosaTWIscanner: started") << endl;
+}
+
+void loop()
+{
   // Iterate through all bus addresses
   for (uint8_t addr = 3; addr < 128; addr++) {
     // Attempt to read from the device


#include "Cosa/Types.h"
#include "Cosa/TWI.hh"
#include "Cosa/IOStream.hh"
#include "Cosa/IOStream/Driver/UART.hh"


    if (name != NULL) cout << ':' << name;
    cout << endl;
  }
  cout << endl;
  SLEEP(5);
}
