smartpi 0.1.0__py3-none-any.whl → 0.1.1__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/module.py +1 -1
- {smartpi-0.1.0.dist-info → smartpi-0.1.1.dist-info}/METADATA +1 -1
- smartpi-0.1.1.dist-info/RECORD +8 -0
- smartpi-0.1.0.dist-info/RECORD +0 -8
- {smartpi-0.1.0.dist-info → smartpi-0.1.1.dist-info}/WHEEL +0 -0
- {smartpi-0.1.0.dist-info → smartpi-0.1.1.dist-info}/top_level.txt +0 -0
smartpi/module.py
CHANGED
|
@@ -318,7 +318,7 @@ class Uart3_funtions:
|
|
|
318
318
|
display_data = response[6:-3]
|
|
319
319
|
# for x in display_data:
|
|
320
320
|
# print(f"{x:02X}", end=' ')
|
|
321
|
-
print(f"电池电量: {display_data}")
|
|
321
|
+
print(f"电池电量: {((display_data[0]*256+display_data[1])/1000):.2f}V")
|
|
322
322
|
return display_data
|
|
323
323
|
else:
|
|
324
324
|
if time.time() - start_time > 3:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
smartpi/__init__.py,sha256=_xzkH8V5GZzuj5JxMhfOT0D3mnDrxPJeshfHYyOxSqU,55
|
|
2
|
+
smartpi/app_module.py,sha256=g0YoZV1EKj4U3KIcqF5Gs3xhxPo8hHnZxKns7vmv3OY,4377
|
|
3
|
+
smartpi/module.py,sha256=mfzAyrQPSYar7Gnz9RvKhb2XmszJaZaAhalI_3mMUA4,19355
|
|
4
|
+
smartpi/mpu6500.py,sha256=UzlRg-n228ZKWO08nh1Mmmk3Y2JJR59fPWABciF7Fck,4723
|
|
5
|
+
smartpi-0.1.1.dist-info/METADATA,sha256=mkZdMszWk5RmOwEcRrPmRpa7tcev1mma5RCMKptGMEo,468
|
|
6
|
+
smartpi-0.1.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
7
|
+
smartpi-0.1.1.dist-info/top_level.txt,sha256=PoLhUCmWAiQUg5UeN2fS-Y1iQyBbF2rdUlizXtpHGRQ,8
|
|
8
|
+
smartpi-0.1.1.dist-info/RECORD,,
|
smartpi-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
smartpi/__init__.py,sha256=_xzkH8V5GZzuj5JxMhfOT0D3mnDrxPJeshfHYyOxSqU,55
|
|
2
|
-
smartpi/app_module.py,sha256=g0YoZV1EKj4U3KIcqF5Gs3xhxPo8hHnZxKns7vmv3OY,4377
|
|
3
|
-
smartpi/module.py,sha256=499JtkF4Rb_syg9xlSjGWbSWw4-2JovOhLg8GJawCKw,19318
|
|
4
|
-
smartpi/mpu6500.py,sha256=UzlRg-n228ZKWO08nh1Mmmk3Y2JJR59fPWABciF7Fck,4723
|
|
5
|
-
smartpi-0.1.0.dist-info/METADATA,sha256=pUCer6guyr5lSW6uonMAOA327Z-yNood_XdsTl0pBBA,468
|
|
6
|
-
smartpi-0.1.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
7
|
-
smartpi-0.1.0.dist-info/top_level.txt,sha256=PoLhUCmWAiQUg5UeN2fS-Y1iQyBbF2rdUlizXtpHGRQ,8
|
|
8
|
-
smartpi-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|