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:   afero_poc15_180216 afero_poc15_180223 afero_poc15_180302 afero_poc15_180403R ... more

Fork of UniGraphic by GraphicsDisplay

UniGraphic for La Suno Version.
To go with La Suno, WatchDog Reset functions were added in ILI9341.

Revision:
34:1a148973febe
Parent:
21:ae0a4eedfc90
--- a/Inits/ILI9341.cpp	Mon Feb 06 12:29:33 2017 +0000
+++ b/Inits/ILI9341.cpp	Mon Dec 25 08:33:03 2017 +0000
@@ -5,6 +5,7 @@
  
 #include "Protocols.h"
 #include "ILI9341.h"
+#include "edge_reset_mgr.h"
 
 //////////////////////////////////////////////////////////////////////////////////
 // display settings ///////////////////////////////////////////////////////
@@ -59,7 +60,7 @@
 void ILI9341::init()
 {
     /* Start Initial Sequence ----------------------------------------------------*/
-    
+reset_watch_dog() ;    
     wr_cmd8(0xCB);  // POWER_ON_SEQ_CONTROL             
      wr_data8(0x39);
      wr_data8(0x2C);
@@ -169,10 +170,10 @@
     wr_data8(0x55);     // 16 bit pixel 
 
     wr_cmd8(0x13); // Nomal Displaymode
-    
+reset_watch_dog() ;     
      wr_cmd8(0x11);                     // sleep out
      wait_ms(150);
-     
+reset_watch_dog() ;      
      wr_cmd8(0x29);                     // display on
      wait_ms(150);