From 257a7b8789951d886dc38adb0561819e7172ac76 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 23 Apr 2019 11:37:34 +0900 Subject: Fix up modulation and lcd transfer scheduling --- driver_fw/lcd1602.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'driver_fw/lcd1602.c') diff --git a/driver_fw/lcd1602.c b/driver_fw/lcd1602.c index f065afc..481ab6c 100644 --- a/driver_fw/lcd1602.c +++ b/driver_fw/lcd1602.c @@ -143,9 +143,13 @@ void write_byte(uint8_t in_u8Byte) uint8_t buf[1] = { lcd_gpio | in_u8Byte }; i2c_transmit(LCD_I2C_PERIPH, buf, 1, LCD_I2C_ADDR, I2C_GENSTOP_YES); - delay_micro(39); + //delay_micro(39); }; +void i2c_transmit_one(const uint8_t b) { + LCD_I2C_PERIPH->CR2 = LCD_I2C_ADDR | I2C_CR2_START | I2C_CR2_AUTOEND | (1 << I2C_CR2_NBYTES_Pos); +} + /* Отправка половины байта экрану на входе: in_u8Byte - байт с командой -- cgit