summaryrefslogtreecommitdiff
path: root/bin/i2c.py
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2024-11-18 19:23:17 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2024-11-18 19:23:17 +0100
commit2feb019c373c99fa3840d99724f5ee6f7c4dac36 (patch)
tree9bf1d614b602149a0ef27078894d6a15ecb13ff0 /bin/i2c.py
parent3714c08a1233884696e0f5483d73efa890e1a5a1 (diff)
started switching to c, started the web gui, started the gtk gui, ending the swift version
Diffstat (limited to 'bin/i2c.py')
-rw-r--r--bin/i2c.py5
1 files changed, 4 insertions, 1 deletions
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