lexus2k / lcdgfx

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

Add LCDGFX and nanoengine to class #108

Closed schwos closed 10 months ago

schwos commented 10 months 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 10 months ago

Reference TinyGPS project for closed solutions