lexus2k / lcdgfx

Driver for LCD displays running on Arduino/Avr/ESP32/Linux (including Rasperry) platforms
MIT License
389 stars 55 forks source link

Add LCDGFX and nanoengine to class #108

Closed schwos closed 1 year ago

schwos commented 1 year ago

We are trying to determine how to add nanoengine to custom display control class.. We appreciate how TingGPS approached supporting multiple display/lcd libraries though we can also put our canvas routines within the object class to call together with all the nanoengine commands.

In a file display.h:

DisplaySSD1306_128x64_I2C* display;

typedef NanoEngine1 NanoEngineDemo;

NanoEngineDemo engine(display);

How can we approach this which will work and not irritate the compiler?

Thank You

schwos commented 1 year ago

Reference TinyGPS project for closed solutions