Basically i glued Peter Drescher and Simon Ford libs in a GraphicsDisplay class, then derived TFT or LCD class (which inherits Protocols class), then the most derived ones (Inits), which are per-display and are the only part needed to be adapted to diff hw.

Dependents:   testUniGraphic_150217 maze_TFT_MMA8451Q TFT_test_frdm-kl25z TFT_test_NUCLEO-F411RE ... more

Revision:
34:c66986d80f72
Parent:
33:f87f06292637
--- a/Inits/SSD1306.cpp	Mon Feb 06 12:29:33 2017 +0000
+++ b/Inits/SSD1306.cpp	Tue Jan 25 17:57:55 2022 +0000
@@ -73,7 +73,7 @@
     /* Start Initial Sequence ----------------------------------------------------*/
     
   //  wr_cmd8(0xE2);   //  sw reset
-    wait_ms(15);
+    thread_sleep_for(15);
     
     wr_cmd8(SSD1306_DISPLAYOFF);    // no problem in SPI_16 for single byte cmds
     wr_cmd16((SSD1306_SETDISPLAYCLOCKDIV<<8)|0x80);   // wr_cmd16 for multibyte cmds issue in SPI16 mode