From 2feb019c373c99fa3840d99724f5ee6f7c4dac36 Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Mon, 18 Nov 2024 19:23:17 +0100 Subject: started switching to c, started the web gui, started the gtk gui, ending the swift version --- bin/i2c.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/i2c.py') diff --git a/bin/i2c.py b/bin/i2c.py index 75a3509..1afb219 100644 --- a/bin/i2c.py +++ b/bin/i2c.py @@ -1,4 +1,4 @@ -from smbus import SMBus +from smbus2 import SMBus from time import sleep ALIGN_FUNC = {"left": "ljust", "right": "rjust", "center": "center"} @@ -63,3 +63,6 @@ class LCD(object): def clear(self): self.write(CLEAR_DISPLAY) + + def read(self): + self._read_i2c_block_data -- cgit v1.2.3-70-g09d2