   Watchdog::begin();
   
   // Initiate EEMEM variables. Arduino build does not handle .eeprom section
-  int16_t network = 0xc05a;
-  uint8_t device = 0x42;
-  uint16_t timeout = 2000;
-  EEPROM::Device::eeprom.write(&NETWORK, &network, sizeof(network));
-  EEPROM::Device::eeprom.write(&DEVICE, &device, sizeof(device));
-  EEPROM::Device::eeprom.write(&TIMEOUT, &timeout, sizeof(timeout));
+  eeprom.write(&NETWORK, 0xc05a);
+  eeprom.write(&DEVICE, 0x42);
+  eeprom.write(&TIMEOUT, 2000);
+
+  // Initiate battery status
+  vcc = AnalogPin::bandgap(1100);
 }
 
 void loop()

 * Boston, MA  02111-1307  USA
 *
 * @section Description
 * Cosa demonstration of Registry.
 * Path Description
 *   0 product information management
 *   0.0 product name

 */

#include "Cosa/Registry.hh"
#include "Cosa/Watchdog.hh"
#include "Cosa/IOStream/Driver/UART.hh"
#include "Cosa/Trace.hh"
#include "Cosa/Pins.hh"

// Product information management registry
REGISTRY_BLOB_PSTR(PRODUCT, "product name", "registry-demo")
