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 CHANGED
@@ -1,4 +1,4 @@
1
1
  __all__ = ["base_driver"]
2
2
 
3
- __version__ = "0.1.16"
3
+ __version__ = "0.1.17"
4
4
 
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(self):
538
+ def shut_down():
539
539
  serial_lock.acquire() #获取线程锁
540
- base_driver.write_data(0XFF, 0XFE)
540
+ write_data(0XFF, 0XFE)
541
541
  serial_lock.release() #释放线程锁
542
542
  time.sleep(0.5)
543
543
 
544
- def shut_down_state(self) -> bool:
544
+ def shut_down_state() -> bool:
545
545
  serial_lock.acquire() #获取线程锁
546
- response =base_driver.process_received_data()
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpi
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: A library use for H2-RCU
5
5
  Author: ZMROBO
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,5 +1,5 @@
1
- smartpi/__init__.py,sha256=-IsfhJ0_REei-Mi4dvCdVrV0tMnAsoRJ4o1wGOWSOls,55
2
- smartpi/base_driver.py,sha256=rUMy7pmTVmE59iwCeKY_TIDeZ2JvYNwFHIEe45GBgR0,20906
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.16.dist-info/METADATA,sha256=oAj0zNAj6MBGhGgjM4VyXT_W-B9QZe5ialmBNRh3gcU,311
18
- smartpi-0.1.16.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
19
- smartpi-0.1.16.dist-info/top_level.txt,sha256=PoLhUCmWAiQUg5UeN2fS-Y1iQyBbF2rdUlizXtpHGRQ,8
20
- smartpi-0.1.16.dist-info/RECORD,,
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,,