issue #493, timing issues with ks0108
This commit is contained in:
parent
12bca5cb5b
commit
9dfadfcf88
|
@ -154,6 +154,7 @@ https://github.com/olikraus/u8g2 ChangeLog
|
|||
* Support for SSD1322 NHD 128x64 (issue 412)
|
||||
* Fixed profont17 (issue 438)
|
||||
2017-xx-xx v2.21.xx olikraus@gmail.com
|
||||
|
||||
* Support for SH1107 (issue 501)
|
||||
*
|
||||
|
||||
|
||||
|
|
|
@ -398,7 +398,8 @@ uint8_t u8x8_byte_sed1520(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_
|
|||
|
||||
u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->data_setup_time_ns);
|
||||
u8x8_gpio_call(u8x8, enable_pin, 1);
|
||||
u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns);
|
||||
u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, 200); /* KS0108 requires 450 ns, use 200 here */
|
||||
u8x8_gpio_Delay(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->write_pulse_width_ns); /* expect 250 here */
|
||||
u8x8_gpio_call(u8x8, enable_pin, 0);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -118,7 +118,7 @@ static const u8x8_display_info_t u8x8_ks0108_128x64_display_info =
|
|||
/* spi_mode = */ 0, /* active high, rising edge */
|
||||
/* i2c_bus_clock_100kHz = */ 4, /* KS0108: Not used */
|
||||
/* data_setup_time_ns = */ 200,
|
||||
/* write_pulse_width_ns = */ 200, /* KS0108: actially 450 ns */
|
||||
/* write_pulse_width_ns = */ 250, /* KS0108: actially 450 ns, but additional 200 ns are added by the byte transfer function */
|
||||
/* tile_width = */ 16, /* width of 16*8=128 pixel */
|
||||
/* tile_hight = */ 8,
|
||||
/* default_x_offset = */ 0,
|
||||
|
|
Loading…
Reference in New Issue