  * Lesser General Public License for more details.
  * 
  * @section Description
- * Cosa LCD demo with RTC.
- * 
+ * Cosa LCD demo with RTC. For Arduino Mega this sketch will require
+ * an 2004 LCD, an ADXL345 Accelerometer and a HMC5883L Digital Compass.
+ *
  * This file is part of the Arduino Che Cosa project.
  */
 

  now.year = 0x13;
  rtc.set_time(now);
#endif
  
  SLEEP(2);
}

void loop()

       << bcd << now.seconds << ' '
       << AnalogPin::bandgap(1100) << PSTR(" mV");

#if defined(__ARDUINO_MEGA__)
  // Read the heading, scale to milli gauss and print the data
  compass.read_heading();
  compass.to_milli_gauss();
  HMC5883L::data_t dir;
  compass.get_heading(dir);
  lcd.set_cursor(0, 2);
  cout << dir.x << PSTR(", ") << dir.y << PSTR(", ") << dir.z << PSTR(" mG");

  // Read the accelerometer and print the data
  ADXL345::sample_t acc;
  accelerometer.sample(acc);
  lcd.set_cursor(0, 3);
  cout << acc.x << PSTR(", ") << acc.y << PSTR(", ") << acc.z << PSTR(" mg");
#endif

  // Take a nap
  SLEEP(1);
}
