mirror of
https://github.com/olikraus/U8g2_Arduino.git
synced 2026-07-27 20:06:05 +00:00
2.36.11
This commit is contained in:
@@ -8,5 +8,5 @@ Description: https://github.com/olikraus/u8g2/wiki
|
|||||||
|
|
||||||
Issue Tracker: https://github.com/olikraus/u8g2/issues
|
Issue Tracker: https://github.com/olikraus/u8g2/issues
|
||||||
|
|
||||||
Download (2.36.10): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
|
Download (2.36.11): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/olikraus/u8g2.git"
|
"url": "https://github.com/olikraus/u8g2.git"
|
||||||
},
|
},
|
||||||
"version": "2.36.10",
|
"version": "2.36.11",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"authors": {
|
"authors": {
|
||||||
"name": "Oliver Kraus",
|
"name": "Oliver Kraus",
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
name=U8g2
|
name=U8g2
|
||||||
version=2.36.10
|
version=2.36.11
|
||||||
author=oliver <olikraus@gmail.com>
|
author=oliver <olikraus@gmail.com>
|
||||||
maintainer=oliver <olikraus@gmail.com>
|
maintainer=oliver <olikraus@gmail.com>
|
||||||
sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1312, SSD1316, SSD1318, SSD1320, SSD1322, SSD1325, SSD1327, SSD1329, SSD1362, SSD1363, SSD1606, SSD1607, SH1106, SH1107, SH1108, SH1122, T6963, RA8835, LC7981, PCD8544, PCF8812, HX1230, UC1601, UC1604, UC1608, UC1610, UC1611, UC1617, UC1628, UC1638, UC1701, ST7302, ST7511, ST7528, ST7539, ST7565, ST7567, ST7571, ST7586, ST7588, ST75160, ST75161, ST75256, ST75320, NT7534, ST7920, IST3020, IST3088, IST7920, LD7032, KS0108, KS0713, HD44102, T7932, SSD1312, SED1330, SED1520, SBN1661, IL3820, MAX7219, GP1287, GP1247, GP1294, GU800. Interfaces: I2C, SPI, Parallel.
|
sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1312, SSD1316, SSD1318, SSD1320, SSD1322, SSD1325, SSD1327, SSD1329, SSD1362, SSD1363, SSD1606, SSD1607, SH1106, SH1107, SH1108, SH1122, T6963, RA8835, LC7981, PCD8544, PCF8812, HX1230, UC1601, UC1604, UC1608, UC1610, UC1611, UC1617, UC1628, UC1638, UC1701, ST7302, ST7511, ST7528, ST7539, ST7565, ST7567, ST7571, ST7586, ST7588, ST75160, ST75161, ST75256, ST75320, NT7534, ST7920, IST3020, IST3088, IST7920, LD7032, KS0108, KS0713, HD44102, T7932, SSD1312, SED1330, SED1520, SBN1661, IL3820, MAX7219, GP1287, GP1247, GP1294, GU800. Interfaces: I2C, SPI, Parallel.
|
||||||
|
|||||||
@@ -131,9 +131,17 @@ static uint8_t *u8x8_st7305_convert_a0(u8x8_t *u8x8, uint8_t *p)
|
|||||||
|
|
||||||
/* contributed by https://github.com/ischenz */
|
/* contributed by https://github.com/ischenz */
|
||||||
/* u8g2 first row */
|
/* u8g2 first row */
|
||||||
static uint8_t map1[16] = { 0x00, 0x02, 0x08, 0x0A, 0x20, 0x22, 0x28, 0x2A, 0x80, 0x82, 0x88, 0x8A, 0xA0, 0xA2, 0xA8, 0xAA };
|
static uint8_t map1[16] = {
|
||||||
|
0x00, 0x02, 0x08, 0x0A,
|
||||||
|
0x20, 0x22, 0x28, 0x2A,
|
||||||
|
0x80, 0x82, 0x88, 0x8A,
|
||||||
|
0xA0, 0xA2, 0xA8, 0xAA };
|
||||||
/* u8g2 second row */
|
/* u8g2 second row */
|
||||||
static uint8_t map2[16] = { 0x00, 0x01, 0x04, 0x05, 0x10, 0x11, 0x14, 0x15, 0x40, 0x41, 0x44, 0x45, 0x50, 0x51, 0x54, 0x55 };
|
static uint8_t map2[16] = {
|
||||||
|
0x00, 0x01, 0x04, 0x05,
|
||||||
|
0x10, 0x11, 0x14, 0x15,
|
||||||
|
0x40, 0x41, 0x44, 0x45,
|
||||||
|
0x50, 0x51, 0x54, 0x55 };
|
||||||
|
|
||||||
memset(buf, 0, 6);
|
memset(buf, 0, 6);
|
||||||
|
|
||||||
@@ -207,15 +215,15 @@ static const uint8_t u8x8_d_st7305_122x250_init_seq[] = {
|
|||||||
U8X8_CA(0x36, 0xa4), // Memory Control, 0xa4 for the 200x200 display
|
U8X8_CA(0x36, 0xa4), // Memory Control, 0xa4 for the 200x200 display
|
||||||
|
|
||||||
U8X8_CA(0x3A, 0x11), // Data Format
|
U8X8_CA(0x3A, 0x11), // Data Format
|
||||||
U8X8_CA(0xB9, 0x23), // Source Setting: Clear RAM off
|
U8X8_CA(0xB9, 0x20), // This command activates monochrome mode. Arg differs from ST7302 */
|
||||||
U8X8_CA(0xB8, 0x09), // Panel Setting / Panel Layout
|
U8X8_CA(0xB8, 0x09), // Panel Setting / Panel Layout
|
||||||
U8X8_CAA(0x2A, 0x05, 0x36), // col addr
|
U8X8_CAA(0x2A, 0x05, 0x36), // col addr
|
||||||
U8X8_CAA(0x2B, 0x00, 0xC7), // row addr
|
U8X8_CAA(0x2B, 0x00, 0xC7), // row addr
|
||||||
U8X8_CA(0xD0, 0x1F), // Not in datasheet
|
U8X8_CA(0xD0, 0x1F), // Not in datasheet
|
||||||
U8X8_C(0x29), // display on
|
U8X8_C(0x29), // display on
|
||||||
U8X8_CA(0x72, 0x00), // Not in datasheet
|
U8X8_CA(0x72, 0x00), // Not in datasheet
|
||||||
U8X8_CAA(0xB2,1, 5), // Frame Rate for High and Low Power Mode (hier: 32Hz and 8Hz)
|
U8X8_CA(0xB2, 0x15), // Frame Rate for High and Low Power Mode (hier: 32Hz and 8Hz)
|
||||||
U8X8_C(0x39), // enable Low Power Mode...: 8Hz, see above
|
U8X8_C(0x38), // 0x038 normal mode, 0x039 Low Power Mode (8Hz)
|
||||||
U8X8_DLY(100),
|
U8X8_DLY(100),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -453,7 +461,7 @@ uint8_t u8x8_d_st7305_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *
|
|||||||
y= (((u8x8_tile_t *)arg_ptr)->y_pos);
|
y= (((u8x8_tile_t *)arg_ptr)->y_pos);
|
||||||
y*=4;
|
y*=4;
|
||||||
|
|
||||||
y+=115; // specific for the 122x250 LCD --> probably change needed for the 200x200 display
|
y+=0; // 200x200 display
|
||||||
|
|
||||||
u8x8_cad_StartTransfer(u8x8);
|
u8x8_cad_StartTransfer(u8x8);
|
||||||
|
|
||||||
@@ -462,7 +470,7 @@ uint8_t u8x8_d_st7305_200x200(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *
|
|||||||
|
|
||||||
u8x8_cad_SendCmd(u8x8, 0x2a); // column address set
|
u8x8_cad_SendCmd(u8x8, 0x2a); // column address set
|
||||||
u8x8_cad_SendArg(u8x8, 0x16); // 0x019 for the 122x250 LCD --> 0x016 for the 200x200 display
|
u8x8_cad_SendArg(u8x8, 0x16); // 0x019 for the 122x250 LCD --> 0x016 for the 200x200 display
|
||||||
u8x8_cad_SendArg(u8x8, 0x26 ); // 204 pixel for the 200x200 display
|
u8x8_cad_SendArg(u8x8, 0x27 ); // 204 pixel for the 200x200 display
|
||||||
|
|
||||||
u8x8_cad_SendCmd(u8x8, 0x2b );
|
u8x8_cad_SendCmd(u8x8, 0x2b );
|
||||||
u8x8_cad_SendArg(u8x8, y+i);
|
u8x8_cad_SendArg(u8x8, y+i);
|
||||||
|
|||||||
Reference in New Issue
Block a user