For those interested in the above combination, I’ve added a little demo combining the Gravity Plug, Pressure Plug, and Graphics Board – oh and a JeeNode of course (it’s actually an experimental JeeNode USB v4 …):
The display shows the current X, Y, and Z accelerometer values as raw readings, plus temperature and pressure:
Both plugs use I2C, and could have been combined on one port. Note that the backlight is off in this example.
The sketch is called – somewhat presumptuously – glcd_imu.ino. And it’s now on GitHub, as part of GLCDlib:
The GraphicsBoard class extends the GLCD_ST7565 class with print(…) calls and could be useful in general.
Get the GitHub version to see the details – omitted here for brevity.