smartpi 0.1.0__tar.gz → 0.1.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpi
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A library use for H2-RCU
5
5
  Author-email: Driver_cai <1547363120@qq.com>
6
6
  Project-URL: Homepage, https://github.com/Drvier_cai/smartpi
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "smartpi"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  authors = [
9
9
  { name="Driver_cai", email="1547363120@qq.com" },
10
10
  ]
@@ -20,4 +20,3 @@ classifiers = [
20
20
  [project.urls]
21
21
  "Homepage" = "https://github.com/Drvier_cai/smartpi"
22
22
  "Bug Tracker" = "https://github.com/Driver/smartpi/issues"
23
-
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpi
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A library use for H2-RCU
5
5
  Author-email: Driver_cai <1547363120@qq.com>
6
6
  Project-URL: Homepage, https://github.com/Drvier_cai/smartpi
File without changes
File without changes
File without changes
File without changes