Quellcode durchsuchen

Version 1.5.9

- added Power Save command (PWS) to GDEY075T7 init (issue with dithered bitmaps)
ZinggJM vor 2 Jahren
Ursprung
Commit
251bffe7d4
4 geänderte Dateien mit 18 neuen und 11 gelöschten Zeilen
  1. 3 1
      README.md
  2. 1 0
      extras/sw_spi/src/GxEPD2_EPD.h
  3. 1 1
      library.properties
  4. 13 9
      src/gdey/GxEPD2_750_GDEY075T7.cpp

+ 3 - 1
README.md

@@ -156,7 +156,9 @@
 - I can't accept panel donations to add support to GxEPD2 currently, I need a break.
 - I can take note of panels of interest for users, to maybe add support later.
 
-### Version 1.5.8
+### Version 1.5.9
+- added Power Save command (PWS) to GDEY075T7 init (issue with dithered bitmaps)
+#### Version 1.5.8
 - added support for GDEP0565D90 5.65" 7-color 600x448
 - added support for GDEY116F51 11.6"  4-color 960x640, SSD2677
 - added support for GDEY029T71H 2.9" b/w 168x384, SSD1685

+ 1 - 0
extras/sw_spi/src/GxEPD2_EPD.h

@@ -127,6 +127,7 @@ class GxEPD2_EPD
     int16_t _cs, _dc, _rst, _busy, _busy_level;
     uint32_t _busy_timeout;
     bool _diag_enabled, _pulldown_rst_mode;
+    SPIClass* _pSPIx;
     SPISettings _spi_settings;
     bool _initial_write, _initial_refresh;
     bool _power_is_on, _using_partial_mode, _hibernating;

+ 1 - 1
library.properties

@@ -1,5 +1,5 @@
 name=GxEPD2
-version=1.5.8
+version=1.5.9
 author=Jean-Marc Zingg
 maintainer=Jean-Marc Zingg
 sentence=Arduino Display Library for SPI E-Paper displays from Dalian Good Display and Waveshare. 

+ 13 - 9
src/gdey/GxEPD2_750_GDEY075T7.cpp

@@ -312,31 +312,35 @@ void GxEPD2_750_GDEY075T7::_PowerOff()
 void GxEPD2_750_GDEY075T7::_InitDisplay()
 {
   if (_hibernating) _reset();
+  _writeCommand(0x00); // PANEL SETTING
+  _writeData(0x1f);    // KW: 3f, KWR: 2F, BWROTP: 0f, BWOTP: 1f
+  // same POWER SETTING as from OTP
   _writeCommand(0x01); // POWER SETTING
-  _writeData (0x07);
+  _writeData (0x07); // enable internal
   _writeData (0x07); // VGH=20V,VGL=-20V
   _writeData (0x3f); // VDH=15V
   _writeData (0x3f); // VDL=-15V
+  _writeData (0x09); // VDHR=4.2V
   //Enhanced display drive(Add 0x06 command)
   _writeCommand(0x06); //Booster Soft Start
   _writeData (0x17);
   _writeData (0x17);
   _writeData (0x28);
   _writeData (0x17);
-  _writeCommand(0x00); //PANEL SETTING
-  _writeData(0x1f); //KW: 3f, KWR: 2F, BWROTP: 0f, BWOTP: 1f
   _writeCommand(0x61); //tres
   _writeData (WIDTH / 256); //source 800
   _writeData (WIDTH % 256);
   _writeData (HEIGHT / 256); //gate 480
   _writeData (HEIGHT % 256);
-  _writeCommand(0x15);
-  _writeData(0x00);
-  _writeCommand(0x50); //VCOM AND DATA INTERVAL SETTING
+  _writeCommand(0x15); // DUSPI
+  _writeData(0x00);    // disabled
+  _writeCommand(0x50); // VCOM AND DATA INTERVAL SETTING
   _writeData(0x29);    // LUTKW, N2OCP: copy new to old
-  _writeData(0x07);
-  _writeCommand(0x60); //TCON SETTING
-  _writeData(0x22);
+  _writeData(0x07);    // CDI 10hsynch (default)
+  _writeCommand(0x60); // TCON SETTING
+  _writeData(0x22);    // S2G G2S, 12 (default)
+  _writeCommand(0xE3); // PWS
+  _writeData(0x22);    // VCOM 2 line period, Source 2 * 660ns
 }
 
 // experimental partial screen update LUTs with balanced charge