From 43dfb3c9ad0523efb34021261504c19708935adf Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 26 Nov 2019 09:49:43 -0500 Subject: [PATCH] lcd_hd44780: Minor change to timing delays Signed-off-by: Kevin O'Connor --- src/lcd_hd44780.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lcd_hd44780.c b/src/lcd_hd44780.c index fe65f5cf..26fa63cb 100644 --- a/src/lcd_hd44780.c +++ b/src/lcd_hd44780.c @@ -54,7 +54,7 @@ hd44780_xmit_bits(uint8_t toggle, struct gpio_out e, struct gpio_out d4 gpio_out_toggle(d6); if (toggle & 0x80) gpio_out_toggle(d7); - ndelay(80); + ndelay(230); gpio_out_toggle(e); } @@ -65,7 +65,7 @@ hd44780_xmit_byte(struct hd44780 *h, uint8_t data) struct gpio_out e = h->e, d4 = h->d4, d5 = h->d5, d6 = h->d6, d7 = h->d7; hd44780_xmit_bits(h->last ^ data, e, d4, d5, d6, d7); h->last = data << 4; - ndelay(500 - 80); + ndelay(500 - 230); hd44780_xmit_bits(data ^ h->last, e, d4, d5, d6, d7); }