diff --git a/README.md b/README.md index 8d6a3faf..1c51eee1 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,5 @@ Description: https://github.com/olikraus/u8g2/wiki Issue Tracker: https://github.com/olikraus/u8g2/issues -Download (2.35.3): https://github.com/olikraus/U8g2_Arduino/archive/master.zip +Download (2.35.4): https://github.com/olikraus/U8g2_Arduino/archive/master.zip diff --git a/examples/full_buffer/HelloWorld/HelloWorld.ino b/examples/full_buffer/HelloWorld/HelloWorld.ino index e95a19b6..57032b25 100644 --- a/examples/full_buffer/HelloWorld/HelloWorld.ino +++ b/examples/full_buffer/HelloWorld/HelloWorld.ino @@ -293,7 +293,7 @@ //U8G2_LC7981_240X128_F_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_LC7981_240X64_F_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND //U8G2_LC7981_128X128_F_6800 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable=*/ 18, /*cs=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RW with GND -//U8G2_SED1520_122X32_F u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*dc=*/ A0, /*e1=*/ A3, /*e2=*/ A2, /* reset=*/ A4); // Set R/W to low! +U8G2_SED1520_122X32_F u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*dc=*/ A0, /*e1=*/ A3, /*e2=*/ A2, /* reset=*/ A4); // Set R/W to low! //U8G2_T6963_240X128_F_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable/wr=*/ 17, /*cs/ce=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND //U8G2_T6963_256X64_F_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable/wr=*/ 17, /*cs/ce=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND //U8G2_T6963_160X80_F_8080 u8g2(U8G2_R0, 8, 9, 10, 11, 4, 5, 6, 7, /*enable/wr=*/ 17, /*cs/ce=*/ 14, /*dc=*/ 15, /*reset=*/ 16); // Connect RD with +5V, FS0 and FS1 with GND diff --git a/extras/ChangeLog b/extras/ChangeLog index 3ccdb839..69c48aaa 100644 --- a/extras/ChangeLog +++ b/extras/ChangeLog @@ -325,3 +325,4 @@ https://github.com/olikraus/u8g2 ChangeLog 2023-xx-xx v2.35.x olikraus@gmail.com * ST7586S JLX320160 (no flipmode, no u8x8, issue 2186) * GP1294AI 256X48 (issue 2213, PR 2222) + * Bugfix for drawUTF8X2 with negative x values (issue 2228) diff --git a/library.properties b/library.properties index 78da625f..627a45e4 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=U8g2 -version=2.35.3 +version=2.35.4 author=oliver maintainer=oliver sentence=Monochrome LCD, OLED and eInk Library. Display controller: SSD1305, SSD1306, SSD1309, SSD1312, SSD1316, SSD1318, 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, ST75160, ST75256, ST75320, NT7534, ST7920, IST3020, IST3088, IST7920, LD7032, KS0108, KS0713, HD44102, T7932, SED1520, SBN1661, IL3820, MAX7219, GP1287, GP1247, GU800. Interfaces: I2C, SPI, Parallel. diff --git a/src/clib/u8g2_font.c b/src/clib/u8g2_font.c index 18b41fcd..35be0129 100644 --- a/src/clib/u8g2_font.c +++ b/src/clib/u8g2_font.c @@ -742,7 +742,7 @@ int8_t u8g2_font_2x_decode_glyph(u8g2_t *u8g2, const uint8_t *glyph_data) y1 += 2*h; if ( u8g2_IsIntersection(u8g2, x0, y0, x1, y1) == 0 ) - return d; + return 2*d; } #endif /* U8G2_WITH_INTERSECTION */ diff --git a/src/clib/u8x8_byte.c b/src/clib/u8x8_byte.c index 8f6467d4..c90a3db8 100644 --- a/src/clib/u8x8_byte.c +++ b/src/clib/u8x8_byte.c @@ -437,6 +437,7 @@ uint8_t u8x8_byte_sed1520(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ case U8X8_MSG_BYTE_START_TRANSFER: /* cs lines are not supported for the SED1520/SBN1661 */ /* instead, this will select the E1 or E2 line */ + /* arg_int is set by u8x8_d_sbn1661_122x32() function */ enable_pin = U8X8_MSG_GPIO_E; if ( arg_int != 0 ) enable_pin = U8X8_MSG_GPIO_CS;