Go Down

Topic: LibGeoShield error (Read 832 times) previous topic - next topic

-u_u-

Jul 28, 2014, 05:59 am Last Edit: Jul 28, 2014, 06:47 am by -u_u- Reason: 1
this is the program

#include <Wire.h>
#include <LibCompass.h>
#include <SoftwareSerial_NB.h>
#include <LibGeoShield.h>

LibGeoShield geo = LibGeoShield(1);
char out[100];

void setup() {
  Serial.begin(57600);  //Open a serial connection to the PC @ 57600 baud
}

void loop() {

  /* Print the GPS data */
  Serial.print(geo.readGPS());

  /* Print the Compass heading, Accel X, Accel Y, Accel Z data */
  sprintf(out, "$GEO,H%d,X%d,Y%d,Z%d\n",
               geo.readCompass(),
               geo.readAccelX(),
               geo.readAccelY(),
               geo.readAccelZ());

  Serial.print(out);
}

ERROR

In file included from /home/q_p/sketchbook/libraries/LibGeoShieldx/image_interface.c:21:
/home/q_p/sketchbook/libraries/LibGeoShieldx/graphics.h:83:3: error: #error invalid screen type

Peter_n

It seems that the library has error checking itself and noticed a problem with a screen type.
Is some initialization needed ? Or do you use the library on a board that is doesn't know ?

Go Up