From 18bcf61935b1d27d83ce03a490789365da799592 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 18 Dec 2020 10:43:40 +0100 Subject: LCD: fix setup and hold for I2C commands --- sw/deps/hd44780-driver/src/bus/i2c_mcp23008.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sw/deps/hd44780-driver/src/bus') diff --git a/sw/deps/hd44780-driver/src/bus/i2c_mcp23008.rs b/sw/deps/hd44780-driver/src/bus/i2c_mcp23008.rs index 1ccb479..09a7f2b 100644 --- a/sw/deps/hd44780-driver/src/bus/i2c_mcp23008.rs +++ b/sw/deps/hd44780-driver/src/bus/i2c_mcp23008.rs @@ -84,6 +84,11 @@ impl DataBus for I2CMCP23008Bus { delay.delay_ms(1); + let pins = rs | backlight | (upper_nibble << 3); + self.set_pins(pins)?; + + delay.delay_ms(1); + let pins = rs | backlight | (lower_nibble << 3); self.set_pins(pins)?; -- cgit v1.2.3