aboutsummaryrefslogtreecommitdiff
path: root/driver_fw/lcd1602.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_fw/lcd1602.c')
-rw-r--r--driver_fw/lcd1602.c6
1 files changed, 5 insertions, 1 deletions
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 - байт с командой