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:
30:87855d03d91a
--- a/Inits/ILI932x.cpp	Mon Feb 06 12:29:33 2017 +0000
+++ b/Inits/ILI932x.cpp	Tue Jan 25 17:57:55 2022 +0000
@@ -77,21 +77,21 @@
  reg_write(0x0012,0x0000);  
  reg_write(0x0013,0x0000); 
  reg_write(0x0007,0x0001);
-wait_ms(200);
+thread_sleep_for(200);
 //vgh 
  reg_write(0x0010,0x1290);   
  reg_write(0x0011,0x0227);
-wait_ms(50);
+thread_sleep_for(50);
  //vregiout 
  reg_write(0x0012,0x001d); //0x001b
- wait_ms(50);
+ thread_sleep_for(50);
  //vom amplitude
  reg_write(0x0013,0x1500);
- wait_ms(50); 
+ thread_sleep_for(50); 
  //vom H
  reg_write(0x0029,0x0018); 
  reg_write(0x002B,0x000D); 
-wait_ms(50);
+thread_sleep_for(50);
 //gamma
  reg_write(0x0030,0x0004);
  reg_write(0x0031,0x0307);
@@ -151,21 +151,21 @@
  reg_write(0x0012,0x0000);  
  reg_write(0x0013,0x0000); 
  reg_write(0x0007,0x0001);
-wait_ms(200);
+thread_sleep_for(200);
 
  reg_write(0x0010,0x10C0);   
  reg_write(0x0011,0x0007);
-wait_ms(50);
+thread_sleep_for(50);
 
  reg_write(0x0012,0x0110);
- wait_ms(50);
+ thread_sleep_for(50);
 
  reg_write(0x0013,0x0b00);
- wait_ms(50); 
+ thread_sleep_for(50); 
 
  reg_write(0x0029,0x0000); 
  reg_write(0x002B,0x4010); // bit 14???
-wait_ms(50);
+thread_sleep_for(50);
 //gamma
 /*
  reg_write(0x0030,0x0004);