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.
- {smartpi-0.1.0 → smartpi-0.1.1}/PKG-INFO +1 -1
- {smartpi-0.1.0 → smartpi-0.1.1}/pyproject.toml +1 -2
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi/module.py +1 -1
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi.egg-info/PKG-INFO +1 -1
- {smartpi-0.1.0 → smartpi-0.1.1}/setup.cfg +0 -0
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi/__init__.py +0 -0
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi/app_module.py +0 -0
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi/mpu6500.py +0 -0
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi.egg-info/SOURCES.txt +0 -0
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi.egg-info/dependency_links.txt +0 -0
- {smartpi-0.1.0 → smartpi-0.1.1}/src/smartpi.egg-info/top_level.txt +0 -0
- {smartpi-0.1.0 → smartpi-0.1.1}/tests/test_module.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "smartpi"
|
|
7
|
-
version = "0.1.
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|