mirror of
https://github.com/olikraus/U8g2_Arduino.git
synced 2026-07-27 20:06:05 +00:00
2.18.11
This commit is contained in:
+2
-1
@@ -133,7 +133,8 @@ https://github.com/olikraus/u8g2 ChangeLog
|
||||
* Support for IL3820, WaveShare 2.9" e-paper (issues 318 & 347)
|
||||
* Improved debounce algorithm (issue 338)
|
||||
* Power save mode for SSD1607 device (issue 352)
|
||||
2017-xx-xx v2.18.1 olikraus@gmail.com
|
||||
2017-xx-xx v2.18.x olikraus@gmail.com
|
||||
* Support for ST7567_JLX12864 (issue 365)
|
||||
* Support for UC1611 (no "s") (issue 339)
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name=U8g2
|
||||
version=2.18.10
|
||||
version=2.18.11
|
||||
author=oliver <olikraus@gmail.com>
|
||||
maintainer=oliver <olikraus@gmail.com>
|
||||
sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1322, SSD1325, SSD1327, SSD1329, SSD1606, SSD1607, SH1106, T6963, RA8835, LC7981, PCD8544, PCF8812, UC1604, UC1608, UC1610, UC1611, UC1701, ST7565, ST7567, ST7588, NT7534, IST3020, ST7920, LD7032, KS0108, SED1520, SBN1661, IL3820, MAX7219. Interfaces: I2C, SPI, Parallel.
|
||||
|
||||
+16
-14
@@ -344,7 +344,7 @@ static const uint8_t u8x8_d_uc1611_ew50850_init_seq[] = {
|
||||
|
||||
//U8X8_C(0x0a9), /* display enable */
|
||||
|
||||
U8X8_C(0x0d1), /* display pattern */
|
||||
U8X8_C(0x0d2), /* gray level mode: 16 gray shades */
|
||||
U8X8_C(0x089), /* auto increment */
|
||||
U8X8_C(0x0c0), /* LCD Mapping Bit 0: MSF, Bit 1: MX, Bit 2: MY */
|
||||
U8X8_C(0x000), /* column low nibble */
|
||||
@@ -412,7 +412,7 @@ static const uint8_t u8x8_d_uc1611_powersave1_seq[] = {
|
||||
/* EW50850, 240x160 */
|
||||
uint8_t u8x8_d_uc1611_ew50850(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr)
|
||||
{
|
||||
uint8_t x, y, c, i, v, m0, m1;
|
||||
uint8_t x, y, c, i, v, m0, m1, ai;
|
||||
uint8_t *ptr;
|
||||
/* msg not handled, then try here */
|
||||
switch(msg)
|
||||
@@ -424,25 +424,24 @@ uint8_t u8x8_d_uc1611_ew50850(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *
|
||||
x *= 8;
|
||||
x += u8x8->x_offset;
|
||||
|
||||
u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15)));
|
||||
u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) );
|
||||
|
||||
y = ((u8x8_tile_t *)arg_ptr)->y_pos;
|
||||
y*=4;
|
||||
m0 = 1;
|
||||
m1 = 2;
|
||||
for( i = 0; i < 4; i++ )
|
||||
{
|
||||
m0 = 1<<(i*2);
|
||||
m1 = m0;
|
||||
m1 <<= 1;
|
||||
u8x8_cad_SendCmd(u8x8, 0x000 | ((x&15)));
|
||||
u8x8_cad_SendCmd(u8x8, 0x010 | (x>>4) );
|
||||
|
||||
u8x8_cad_SendCmd(u8x8, 0x060 | (y&15));
|
||||
u8x8_cad_SendCmd(u8x8, 0x070 | (y>>4));
|
||||
|
||||
c = ((u8x8_tile_t *)arg_ptr)->cnt;
|
||||
c *= 8;
|
||||
ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr;
|
||||
|
||||
ai = arg_int;
|
||||
do
|
||||
{
|
||||
c = ((u8x8_tile_t *)arg_ptr)->cnt;
|
||||
c *= 8;
|
||||
ptr = ((u8x8_tile_t *)arg_ptr)->tile_ptr;
|
||||
while( c > 0 )
|
||||
{
|
||||
v = 0;
|
||||
@@ -452,10 +451,13 @@ uint8_t u8x8_d_uc1611_ew50850(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *
|
||||
v|= 0xf0;
|
||||
u8x8_cad_SendData(u8x8, 1, &v); /* note: SendData can not handle more than 255 bytes */
|
||||
c--;
|
||||
ptr++;
|
||||
}
|
||||
arg_int--;
|
||||
} while( arg_int > 0 );
|
||||
ai--;
|
||||
} while( ai > 0 );
|
||||
|
||||
m0 <<= 2;
|
||||
m1 <<= 2;
|
||||
y++;
|
||||
}
|
||||
u8x8_cad_EndTransfer(u8x8);
|
||||
|
||||
Reference in New Issue
Block a user