kraus há 3 anos atrás
pai
commit
831709a95a
3 ficheiros alterados com 32 adições e 7 exclusões
  1. 1 1
      README.md
  2. 1 1
      library.properties
  3. 30 5
      src/clib/u8x8_d_ist3088.c

+ 1 - 1
README.md

@@ -8,5 +8,5 @@ Description: https://github.com/olikraus/u8g2/wiki
 
 Issue Tracker: https://github.com/olikraus/u8g2/issues
 
-Download (2.33.5): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
+Download (2.33.6): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
 

+ 1 - 1
library.properties

@@ -1,5 +1,5 @@
 name=U8g2
-version=2.33.5
+version=2.33.6
 author=oliver <olikraus@gmail.com>
 maintainer=oliver <olikraus@gmail.com>
 sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1312, SSD1316, SSD1320, SSD1322, SSD1325, SSD1327, SSD1329, SSD1606, SSD1607, SH1106, SH1107, SH1108, SH1122, T6963, RA8835, LC7981, PCD8544, PCF8812, HX1230, UC1601, UC1604, UC1608, UC1610, UC1611, UC1617, UC1638, UC1701, ST7511, ST7528, ST7565, ST7567, ST7571, ST7586, ST7588, ST75256, ST75320, NT7534, ST7920, IST3020, IST7920, LD7032, KS0108, KS0713, HD44102, T7932, SED1520, SBN1661, IL3820, MAX7219. Interfaces: I2C, SPI, Parallel.

+ 30 - 5
src/clib/u8x8_d_ist3088.c

@@ -170,6 +170,28 @@ static uint8_t u8x8_d_ist3088_generic(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int
 
 /*===================================================*/
 
+/*
+    SdCmd(0x01);                // driver control
+	SdData(0x00); SdData(0x00); // c1-->c240 s1-->s240 duty=1/240
+    SdCmd(0x02);                // driver control
+	SdData(0x01); SdData(0x4c);	//0x15
+    SdCmd(0x03);                // power control
+	SdData(0x00); SdData(0x70); // VC VR Vf=1
+    SdCmd(0x04);                // power control
+	SdData(0x04); SdData(0x61); //0x61  //1/14b
+    SdCmd(0x05);                // CT control
+	SdData(0x00); SdData(0x6a); // 0X76 
+    SdCmd(0x06);                // CT control
+	SdData(0x00); SdData(0x03); 
+    SdCmd(0x23);                // B/W MODE,16G NEED REMOVE
+	SdData(0x00); SdData(0x04); //04:mono
+    SdCmd(0x28);                // OSC
+	SdData(0x00); SdData(0x0c);
+    SdCmd(0x37);                
+        SdData(0x00); SdData(0x12);
+    SdCmd(0x07);                
+        SdData(0x00); SdData(0x01);
+*/
 
 /* https://github.com/olikraus/u8g2/issues/1887 */
 static const uint8_t u8x8_d_ist3088_320x240_init_seq[] = {
@@ -180,12 +202,12 @@ static const uint8_t u8x8_d_ist3088_320x240_init_seq[] = {
   U8X8_CCAA(0x0, 0x07, 0x00, 0x00), 			// Display Control Bit 2: BW, 1: Invert, 0: Display enable
 
   U8X8_CCAA(0x0, 0x01, 0x00, 0x00), 			// Driver Control, 1/240 Duty
-  U8X8_CCAA(0x0, 0x02, 0x00, 0x00), 			// Polarity Control
+  U8X8_CCAA(0x0, 0x02, 0x01, 0x4c), 			// Polarity Control
 
   U8X8_CCAA(0x0, 0x06, 0x00, 0x03), 			// Entry mode: h/v increment  
-  U8X8_CCAA(0x0, 0x23, 0x00, 0x04), 			// Monochrome mode
-  U8X8_CCAA(0x0, 0x04, 0x07, 0x80), 			// Power Control 2: 0x07: 1/16 Bias, Vout1 x 4
-  U8X8_CCAA(0x0, 0x05, 0x00, 0x7f), 			// Contrast, 0..255, 
+  //U8X8_CCAA(0x0, 0x04, 0x07, 0x61), 			// Power Control 2: 0x07: 1/16 Bias, Vout1 x 4
+  U8X8_CCAA(0x0, 0x04, 0x04, 0x61), 			// Power Control 2: 0x07: 1/16 Bias, Vout1 x 4
+  U8X8_CCAA(0x0, 0x05, 0x00, 0x6a), 			// Contrast, 0..255, 
 
   U8X8_CCAA(0x0, 0x03, 0x00, 0x40), 			// Enable voltage converter 
   U8X8_DLY(10),
@@ -194,11 +216,14 @@ static const uint8_t u8x8_d_ist3088_320x240_init_seq[] = {
   U8X8_CCAA(0x0, 0x03, 0x00, 0x70), 			// Enable voltage follower 
   U8X8_DLY(10),
 
+  U8X8_CCAA(0x0, 0x23, 0x00, 0x04), 			// Monochrome mode
+  U8X8_CCAA(0x0, 0x28, 0x00, 0x0c), 			// Frame Rate Control
+  U8X8_CCAA(0x0, 0x37, 0x00, 0x01), 			// Frame Rate Control
   U8X8_CCAA(0x0, 0x0d, 0x7f, 0x00), 			// X End and X Start
   
   U8X8_CCAA(0x0, 0x0e, 239, 0x00), 			// Y End and Y Start
 
-  /* enable LCD (will be done by powersave0 */
+  /* enable LCD (will be done by powersave0) */
   //U8X8_CCAA(0x0, 0x07, 0x00, 0x01), 			// Display Control Bit 2: BW, 1: Invert, 0: Display enable
     
   U8X8_END_TRANSFER(),             	/* disable chip */