Was trying to see if I could use a Sharp Memory Display with the Spark, so I tried throwing the tutorial/sample code into the Spark IDE, eg:
All of these are from the Adafruit tutorial pages: http://learn.adafruit.com/adafruit-sharp-memory-display-breakout/downloads
Fixed a bunch of compiling errors, but now I hit one that I don’t know what to do with:
In file included from Adafruit_GFX.cpp:34:0: Adafruit_GFX.h:68:18: error: conflicting return type specified for 'virtual void Adafruit_GFX::write(uint8_t)' In file included from ../inc/spark_wiring_stream.h:38:0, from ../inc/spark_wiring.h:32, from ../inc/application.h:29, from Adafruit_GFX.cpp:33: ../inc/spark_wiring_print.h:58:20: error: overriding 'virtual size_t Print::write(uint8_t)' make: *** [Adafruit_GFX.o] Error 1
- Is there an easier/better way to get this display working?
- If there’s an easy fix for the above, what is it? Am not clear yet on the main differences between the Spark and the Arduino code-wise.
- Has anyone else gotten the Adafruit GFX library working, and if so, with what display?