diff options
| author | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-18 19:23:17 +0100 |
|---|---|---|
| committer | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-18 19:23:17 +0100 |
| commit | 2feb019c373c99fa3840d99724f5ee6f7c4dac36 (patch) | |
| tree | 9bf1d614b602149a0ef27078894d6a15ecb13ff0 /bin/i2c.py | |
| parent | 3714c08a1233884696e0f5483d73efa890e1a5a1 (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.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
