smartpi 0.1.16__py3-none-any.whl → 0.1.17__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.
- smartpi/__init__.py +1 -1
- smartpi/base_driver.py +4 -4
- {smartpi-0.1.16.dist-info → smartpi-0.1.17.dist-info}/METADATA +1 -1
- {smartpi-0.1.16.dist-info → smartpi-0.1.17.dist-info}/RECORD +6 -6
- {smartpi-0.1.16.dist-info → smartpi-0.1.17.dist-info}/WHEEL +0 -0
- {smartpi-0.1.16.dist-info → smartpi-0.1.17.dist-info}/top_level.txt +0 -0
smartpi/__init__.py
CHANGED
smartpi/base_driver.py
CHANGED
|
@@ -535,15 +535,15 @@ def mode_change(send_data: str) -> Optional[bytes]:
|
|
|
535
535
|
serial_lock.release() #释放线程锁
|
|
536
536
|
return None
|
|
537
537
|
|
|
538
|
-
def shut_down(
|
|
538
|
+
def shut_down():
|
|
539
539
|
serial_lock.acquire() #获取线程锁
|
|
540
|
-
|
|
540
|
+
write_data(0XFF, 0XFE)
|
|
541
541
|
serial_lock.release() #释放线程锁
|
|
542
542
|
time.sleep(0.5)
|
|
543
543
|
|
|
544
|
-
def shut_down_state(
|
|
544
|
+
def shut_down_state() -> bool:
|
|
545
545
|
serial_lock.acquire() #获取线程锁
|
|
546
|
-
response =
|
|
546
|
+
response =process_received_data()
|
|
547
547
|
if response:
|
|
548
548
|
receive_data = response[4:-3]
|
|
549
549
|
if receive_data[0]==0XFF and receive_data[1]==0XFE:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
smartpi/__init__.py,sha256
|
|
2
|
-
smartpi/base_driver.py,sha256=
|
|
1
|
+
smartpi/__init__.py,sha256=QvBc8l0qX84e0M5-X8BCEcxwyPCioMaK72G9o0Bpc00,55
|
|
2
|
+
smartpi/base_driver.py,sha256=itd5Qe5MMiTBUeOLoIjrZO3dvCXS-Mgaz8soKqzveAk,20874
|
|
3
3
|
smartpi/color_sensor.py,sha256=sTqD3jApjmc6qHMrDyEy2UjaRt8vhJZNR88vzgUiLKs,496
|
|
4
4
|
smartpi/cw2015.py,sha256=1lAF-pi_ye_ya1AZQS1sjbgsDf7MThO5IAskKsNGBzA,5695
|
|
5
5
|
smartpi/flash.py,sha256=Luz0TjinQSkx31uVknqfSWkiAiVrqIE2Iba7lk3AOzM,4132
|
|
@@ -14,7 +14,7 @@ smartpi/temperature.py,sha256=px2YeqgG63nPkyhJA1wDg3dwYx_oOCYuhMjtsVm_YO0,460
|
|
|
14
14
|
smartpi/touch_sensor.py,sha256=F6IIQGewNRhC9U1RbHpVzuGYqb8H41lpeQ1Ejwsc_T8,438
|
|
15
15
|
smartpi/trace.py,sha256=2sqMZhaT1x2pR7qO-U5w4XHyFssx3swRka88mJlcxPw,1095
|
|
16
16
|
smartpi/ultrasonic.py,sha256=0meczFKXFLUt92kLxipeEc37vb5duvJjPs4kgtlpO8M,622
|
|
17
|
-
smartpi-0.1.
|
|
18
|
-
smartpi-0.1.
|
|
19
|
-
smartpi-0.1.
|
|
20
|
-
smartpi-0.1.
|
|
17
|
+
smartpi-0.1.17.dist-info/METADATA,sha256=87afL8yQ8pS-mVIR6YVbQPsqAfQXddk48WJQvSNNu5A,311
|
|
18
|
+
smartpi-0.1.17.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
19
|
+
smartpi-0.1.17.dist-info/top_level.txt,sha256=PoLhUCmWAiQUg5UeN2fS-Y1iQyBbF2rdUlizXtpHGRQ,8
|
|
20
|
+
smartpi-0.1.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|