smartscreen-driver 0.2.1__py3-none-any.whl → 0.2.3__py3-none-any.whl

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.
@@ -152,14 +152,17 @@ class LcdCommRevA(LcdComm):
152
152
  self.open_serial()
153
153
 
154
154
  def clear(self):
155
- self.set_orientation(
156
- Orientation.PORTRAIT
157
- ) # Bug: orientation needs to be PORTRAIT before clearing
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
- self.set_orientation() # Restore default orientation
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)
@@ -1,9 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: smartscreen-driver
3
- Version: 0.2.1
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,11 +1,11 @@
1
1
  smartscreen_driver/lcd_comm.py,sha256=AIkdLZfHFHE8I5TV1OocVvf4j8TBFlm_OBITOG4IQZ8,7608
2
- smartscreen_driver/lcd_comm_rev_a.py,sha256=vnhd4UaWSVLhxXNBwsKi3f5jcIASBnj2gqQUnePgP7c,8271
2
+ smartscreen_driver/lcd_comm_rev_a.py,sha256=fgwbugiXFEBDRLRAkSzFkxDLsGMvHo7UIJwCnwNwI_U,8330
3
3
  smartscreen_driver/lcd_comm_rev_b.py,sha256=HJaDXKILtdHpuWiKGA5wa_u6q-zvuWhYrr1zcN4T43s,10896
4
4
  smartscreen_driver/lcd_comm_rev_c.py,sha256=gxaAcX8IdTIq3V_kd_Bb3C10vSYxyguX0FyROsC6M_Q,13795
5
5
  smartscreen_driver/lcd_comm_rev_d.py,sha256=16H_rNbYP66nebAePvZ897FIHjVjIeinLGm7-P2TP_w,7290
6
6
  smartscreen_driver/lcd_simulated.py,sha256=ZI6-fUuFeps7_-0AyrQe2Ygo3dF3qfm8ougw0nNRFhE,5624
7
7
  smartscreen_driver/serialize.py,sha256=xG_CBRutI8q3D3kTsG7dhLA0QYmQ_5LCZr9bfC4pey8,1671
8
- smartscreen_driver-0.2.1.dist-info/METADATA,sha256=akLrbhGuUsbxME6TW_9OW-gkivOT-p7wzZ9V9uro7Vw,1274
9
- smartscreen_driver-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- smartscreen_driver-0.2.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
11
- smartscreen_driver-0.2.1.dist-info/RECORD,,
8
+ smartscreen_driver-0.2.3.dist-info/METADATA,sha256=vJHE_ih2Yb9TbmWHDETwnNSlVK7uJTMX699qDVWtDrA,1248
9
+ smartscreen_driver-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ smartscreen_driver-0.2.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
11
+ smartscreen_driver-0.2.3.dist-info/RECORD,,