smartscreen-driver 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/PKG-INFO +1 -1
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/pyproject.toml +1 -1
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_a.py +7 -4
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/.gitignore +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/LICENSE +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/README.md +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/hello_world.py +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm.py +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_b.py +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_c.py +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_d.py +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_simulated.py +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/serialize.py +0 -0
- {smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/uv.lock +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: smartscreen-driver
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.3
|
4
4
|
Summary: Driver for serial-over-USB displays; library extracted from turing-smart-screen-python
|
5
5
|
Project-URL: homepage, https://github.com/hchargois/smartscreen-driver
|
6
6
|
Author-email: Hugo Chargois <hugo.chargois@free.fr>
|
{smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_a.py
RENAMED
@@ -152,14 +152,17 @@ class LcdCommRevA(LcdComm):
|
|
152
152
|
self.open_serial()
|
153
153
|
|
154
154
|
def clear(self):
|
155
|
-
|
156
|
-
|
157
|
-
)
|
155
|
+
# Bug: orientation needs to be PORTRAIT before clearing
|
156
|
+
backup_orientation = self.orientation
|
157
|
+
self.set_orientation(Orientation.PORTRAIT)
|
158
|
+
|
158
159
|
if self.sub_revision == SubRevision.TURING_3_5:
|
159
160
|
self.send_command(Command.TO_BLACK, 0, 0, 0, 0)
|
160
161
|
else:
|
161
162
|
self.send_command(Command.CLEAR, 0, 0, 0, 0)
|
162
|
-
|
163
|
+
|
164
|
+
# Restore previous orientation
|
165
|
+
self.set_orientation(backup_orientation)
|
163
166
|
|
164
167
|
def screen_off(self):
|
165
168
|
self.send_command(Command.SCREEN_OFF, 0, 0, 0, 0)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_b.py
RENAMED
File without changes
|
{smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_c.py
RENAMED
File without changes
|
{smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_d.py
RENAMED
File without changes
|
{smartscreen_driver-0.2.2 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_simulated.py
RENAMED
File without changes
|
File without changes
|
File without changes
|