Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 27aa830

Browse files
committed
minor fixes
1 parent 0272d7b commit 27aa830

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
version: 2
66

77
build:
8-
os: ubuntu-20.04
8+
os: ubuntu-22.04
99
tools:
1010
python: "3"
1111

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DS3502
1+
MicroPython DS3502 Library
22
=========================================
33

44

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# SPDX-FileCopyrightText: 2023 Jose D. Montoya
42
#
53
# SPDX-License-Identifier: MIT

examples/ds3502_simpletest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@
1515
while True:
1616
# set th
1717
ds3502.wiper = 127
18-
print("Wiper set to %d" % ds3502.wiper)
18+
print(f"Wiper set to {ds3502.wiper}")
1919
voltage = wiper_output.read_u16()
2020
voltage *= 3.3
2121
voltage /= 65535
22-
print("Wiper voltage: %.2f V" % voltage)
22+
print(f"Wiper voltage {voltage:.2f}V")
2323
print("")
2424
sleep(1.0)
2525

2626
ds3502.wiper = 0
27-
print("Wiper set to %d" % ds3502.wiper)
27+
print(f"Wiper set to {ds3502.wiper}")
2828
voltage = wiper_output.read_u16()
2929
voltage *= 3.3
3030
voltage /= 65535
31-
print("Wiper voltage: %.2f V" % voltage)
31+
print(f"Wiper voltage {voltage:.2f}V")
3232
print("")
3333
sleep(1.0)
3434

3535
ds3502.wiper = 63
36-
print("Wiper set to %d" % ds3502.wiper)
36+
print(f"Wiper set to {ds3502.wiper}")
3737
voltage = wiper_output.read_u16()
3838
voltage *= 3.3
3939
voltage /= 65535
40-
print("Wiper voltage: %.2f V" % voltage)
40+
print(f"Wiper voltage {voltage:.2f}V")
4141
print("")
4242
sleep(1.0)

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
22
"urls": [
3-
["micropython_ds3502/__init__.py", "github:jposada202020/MicroPython_DS3502/micropython_ds3502/__init__.py"],
4-
["micropython_ds3502/i2c_helpers.py", "github:jposada202020/MicroPython_DS3502/micropython_ds3502/i2c_helpers.py"],
5-
["micropython_ds3502/ds3502.py", "github:jposada202020/MicroPython_DS3502/micropython_ds3502/ds3502.py"]
3+
[
4+
"micropython_ds3502/__init__.py",
5+
"github:jposada202020/MicroPython_DS3502/micropython_ds3502/__init__.py"
6+
],
7+
[
8+
"micropython_ds3502/i2c_helpers.py",
9+
"github:jposada202020/MicroPython_DS3502/micropython_ds3502/i2c_helpers.py"
10+
],
11+
[
12+
"micropython_ds3502/ds3502.py",
13+
"github:jposada202020/MicroPython_DS3502/micropython_ds3502/ds3502.py"
14+
]
615
],
7-
"version": "0.1"
16+
"version": "1"
817
}

0 commit comments

Comments
 (0)