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:
29:866213bb9bf0
--- a/Inits/S6D04D1.cpp	Mon Feb 06 12:29:33 2017 +0000
+++ b/Inits/S6D04D1.cpp	Tue Jan 25 17:57:55 2022 +0000
@@ -72,7 +72,7 @@
 wr_data8(0x01); 
 
 wr_cmd8(0x11); 
-wait_ms(150); 
+thread_sleep_for(150); 
 
 wr_cmd8(0xF3); 
 wr_data8(0x01); 
@@ -98,23 +98,23 @@
 wr_data8(0xF0); 
 wr_data8(0x70); 
 wr_data8(0x1F); 
-wait_ms(30); 
+thread_sleep_for(30); 
 
 wr_cmd8(0xF3); 
 wr_data8(0x03); 
-wait_ms(30); 
+thread_sleep_for(30); 
 wr_cmd8(0xF3); 
 wr_data8(0x07); 
-wait_ms(30); 
+thread_sleep_for(30); 
 wr_cmd8(0xF3); 
 wr_data8(0x0F); 
-wait_ms(30); 
+thread_sleep_for(30); 
 wr_cmd8(0xF3); 
 wr_data8(0x1F); 
-wait_ms(30); 
+thread_sleep_for(30); 
 wr_cmd8(0xF3); 
 wr_data8(0x7F); 
-wait_ms(30); 
+thread_sleep_for(30); 
 
 
 wr_cmd8(0xF7); 
@@ -253,8 +253,8 @@
 wr_data8(0x02); 
 wr_data8(0x01);//240*400 
  
-wait_ms(20); 
+thread_sleep_for(20); 
 wr_cmd8(0x29); // display on
-wait_ms(20); 
+thread_sleep_for(20); 
     
 }