smartscreen-driver 0.2.1__tar.gz → 0.2.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/PKG-INFO +1 -2
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/pyproject.toml +1 -2
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_a.py +7 -4
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/.gitignore +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/LICENSE +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/README.md +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/hello_world.py +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm.py +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_b.py +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_c.py +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_d.py +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_simulated.py +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/serialize.py +0 -0
- {smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/uv.lock +0 -0
@@ -1,9 +1,8 @@
|
|
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
|
-
Author: Mathieu Houdebine
|
7
6
|
Author-email: Hugo Chargois <hugo.chargois@free.fr>
|
8
7
|
License-File: LICENSE
|
9
8
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
@@ -1,10 +1,9 @@
|
|
1
1
|
[project]
|
2
2
|
name = "smartscreen-driver"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.3"
|
4
4
|
description = "Driver for serial-over-USB displays; library extracted from turing-smart-screen-python"
|
5
5
|
authors = [
|
6
6
|
{ name="Hugo Chargois", email="hugo.chargois@free.fr" },
|
7
|
-
{ name="Mathieu Houdebine" },
|
8
7
|
]
|
9
8
|
classifiers = [
|
10
9
|
"Programming Language :: Python :: 3",
|
{smartscreen_driver-0.2.1 → 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.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_b.py
RENAMED
File without changes
|
{smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_c.py
RENAMED
File without changes
|
{smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_comm_rev_d.py
RENAMED
File without changes
|
{smartscreen_driver-0.2.1 → smartscreen_driver-0.2.3}/src/smartscreen_driver/lcd_simulated.py
RENAMED
File without changes
|
File without changes
|
File without changes
|