This commit is contained in:
olikraus
2017-12-09 10:38:06 +01:00
parent dedb898e6c
commit 67cdc0c389
4 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -8,5 +8,5 @@ Description: https://github.com/olikraus/u8g2/wiki
Issue Tracker: https://github.com/olikraus/u8g2/issues
Download (2.20.10): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
Download (2.20.11): https://github.com/olikraus/U8g2_Arduino/archive/master.zip
+3 -3
View File
@@ -78,7 +78,7 @@
//U8X8_SSD1309_128X64_NONAME2_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
//U8X8_SSD1322_NHD_256X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
//U8X8_SSD1322_NHD_256X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
//U8X8_SSD1322_NHD_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
U8X8_SSD1322_NHD_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
//U8X8_SSD1322_NHD_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
//U8X8_SSD1325_NHD_128X64_4W_SW_SPI u8x8(/* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
//U8X8_SSD1325_NHD_128X64_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
@@ -172,7 +172,7 @@ void loop(void)
u8x8.setInverseFont(1);
u8x8.drawString(0,0,"FlipMode 0");
u8x8.setInverseFont(0);
u8x8.drawString(0,2,"FlipMode 0");
u8x8.drawString(1,1,"FlipMode 0");
delay(1500);
u8x8.clear();
@@ -180,7 +180,7 @@ void loop(void)
u8x8.setInverseFont(1);
u8x8.drawString(0,0,"FlipMode 1");
u8x8.setInverseFont(0);
u8x8.drawString(0,3,"FlipMode 1");
u8x8.drawString(1,1,"FlipMode 1");
delay(1500);
}
+1 -1
View File
@@ -1,5 +1,5 @@
name=U8g2
version=2.20.10
version=2.20.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, UC1601, UC1604, UC1608, UC1610, UC1611, UC1701, ST7565, ST7567, ST7588, ST75256, NT7534, IST3020, ST7920, LD7032, KS0108, SED1520, SBN1661, IL3820, MAX7219. Interfaces: I2C, SPI, Parallel.
+4 -3
View File
@@ -368,8 +368,9 @@ uint8_t u8x8_d_ssd1322_common2(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void
u8x8_cad_StartTransfer(u8x8);
x = ((u8x8_tile_t *)arg_ptr)->x_pos;
x *= 2; // only every 4th col can be addressed
x *= 2; // only every second pixel is used in the 128x64 NHD OLED
x += u8x8->x_offset;
x *= 2; // only every second pixel is used in the 128x64 NHD OLED
y = (((u8x8_tile_t *)arg_ptr)->y_pos);
y *= 8;
@@ -449,8 +450,8 @@ static const u8x8_display_info_t u8x8_ssd1322_128x64_display_info =
/* write_pulse_width_ns = */ 150, /* SSD1322: cycle time is 300ns, so use 300/2 = 150 */
/* tile_width = */ 16, /* 128 pixel */
/* tile_hight = */ 8,
/* default_x_offset = */ 0x01c, /* this is the byte offset (there are two pixel per byte with 4 bit per pixel) */
/* flipmode_x_offset = */ 0x01c,
/* default_x_offset = */ 28, /* this is the byte offset (there are two pixel per byte with 4 bit per pixel) */
/* flipmode_x_offset = */ 28,
/* pixel_width = */ 128,
/* pixel_height = */ 64
};