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 @@ | |||
| 1 | from smbus import SMBus | 1 | from smbus2 import SMBus |
| 2 | from time import sleep | 2 | from time import sleep |
| 3 | 3 | ||
| 4 | ALIGN_FUNC = {"left": "ljust", "right": "rjust", "center": "center"} | 4 | ALIGN_FUNC = {"left": "ljust", "right": "rjust", "center": "center"} |
| @@ -63,3 +63,6 @@ class LCD(object): | |||
| 63 | 63 | ||
| 64 | def clear(self): | 64 | def clear(self): |
| 65 | self.write(CLEAR_DISPLAY) | 65 | self.write(CLEAR_DISPLAY) |
| 66 | |||
| 67 | def read(self): | ||
| 68 | self._read_i2c_block_data | ||
