From cf01c743a89e17d78037fcc77f32b8daa859845e Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 27 Oct 2019 21:35:22 +0100 Subject: [PATCH] drivers/hd44780: add short delay after each character MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On the LCD display connected to the MCB2300 board, the display would not light up. Adding a 1µs delay after each byte of data seems to fix it. --- drivers/hd44780/hd44780.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hd44780/hd44780.c b/drivers/hd44780/hd44780.c index 7ffce301ed..73b2a60729 100644 --- a/drivers/hd44780/hd44780.c +++ b/drivers/hd44780/hd44780.c @@ -83,6 +83,8 @@ static void _send(const hd44780_t *dev, uint8_t value, hd44780_state_t state) _write_bits(dev, 4, value>>4); _write_bits(dev, 4, value); } + + xtimer_usleep(HD44780_PULSE_WAIT_SHORT); } static void _write_bits(const hd44780_t *dev, uint8_t bits, uint8_t value)