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:
21:ae0a4eedfc90
--- a/Inits/ST7565.cpp	Mon Feb 06 12:29:33 2017 +0000
+++ b/Inits/ST7565.cpp	Tue Jan 25 17:57:55 2022 +0000
@@ -55,7 +55,7 @@
     /* Start Initial Sequence ----------------------------------------------------*/
     
     wr_cmd8(0xE2);   //  sw reset
-    wait_ms(10);
+    thread_sleep_for(10);
     
     wr_cmd8(0xAE);   //  display off
     
@@ -68,11 +68,11 @@
     wr_cmd8(0xC0);   // SHL select com0-com63
 
     wr_cmd8(0x2C);   //   Boost ON
-    wait_ms(10);
+    thread_sleep_for(10);
     wr_cmd8(0x2E);   //   Voltage Regulator ON
-    wait_ms(10);
+    thread_sleep_for(10);
     wr_cmd8(0x2F);   //   Voltage Follower ON
-    wait_ms(10);
+    thread_sleep_for(10);
     wr_cmd8(0x20|0x05);   //  Regulor_Resistor_Select resistor ratio 20-27, look at your display specific init code
     set_contrast(0x20);
     //wr_cmd8(0x81);   //  set contrast (reference voltage register set)