DOGM128 - printed values not updated

Hello
I have some issues regarding the library dogm128:

  1. fonts bigger than 6x13 crash the communication between Processing and Arduino board, I need a reboot of the computer.
  2. For some obscure reasons, printed values are not updated. I need to put them on a specific location (1st line) to have the expected value.
    I didn't found any discussion about it on that forum and on the dogm128 site (GitHub - olikraus/dogm128: Automatically exported from code.google.com/p/dogm128)
    Many thanks for your help

BMP085_output.pde (9.19 KB)

00007.mov (122 KB)

BMP085_output.pde (9.19 KB)

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 (Google Code Archive - Long-term storage for Google Code Project Hosting.).

Oliver

Tank you very much Oliver.

I put the dogm.start() just before the "do {" and the sketch work as expected.
Didn't understood why, but it work !
Concerning the fonts that fail the upload, I will try to reflash the bootloader, but for now I don't have a programmer.

Regards