Hi
void loop(void) {
dps.getTemperature(&Temperature);
dps.getPressure(&Pressure);
dps.getAltitude(&Altitude);
do{
// The following part sould be done during the setup, but if I do so only the "pressure"
// is displayed
dogm.setFont(font_4x6);
dogm.setXY(0,18);
The dogm.start() is missing just before the "do {"
The "picture" loop is fixed and has always the same structure:
dogm.start();
do {
drawScreen();
} while( dogm.next() );
The name ".start()" refers to the start of the picture loop, which starts the update of the screen.
This loop must be located in the "loop()" procedure. It does not make much sense to put it into the "setup()" part of the Arduino program.
I would also strongly recommend to put all graphics output to the dogm library into a separate procedure (e.g. drawScreen()).
Some fonts might crash (upload fails) on the MEGA2560 because of the "!!!" issue. This an issue of your bootloader, not an issue of the dogm128 library. The fonts 7x13, 7x14 and 8x16 do contain the binary code of !!! and will fail (
http://code.google.com/p/arduino/issues/detail?id=392&can=1&q=2560).
Oliver