mirror of https://github.com/Nonannet/pyhoff.git
version changed to 1.2, project files updated
This commit is contained in:
parent
27609b496c
commit
605b2bc0dd
|
@ -71,6 +71,13 @@ instance/
|
||||||
# Sphinx documentation
|
# Sphinx documentation
|
||||||
docs/_build/
|
docs/_build/
|
||||||
|
|
||||||
|
# Autogenerated documentation
|
||||||
|
docs/source/modules.md
|
||||||
|
|
||||||
|
# Sphinx default files
|
||||||
|
docs/Makefile
|
||||||
|
docs/make.bat
|
||||||
|
|
||||||
# PyBuilder
|
# PyBuilder
|
||||||
.pybuilder/
|
.pybuilder/
|
||||||
target/
|
target/
|
||||||
|
|
|
@ -5,7 +5,7 @@ authors:
|
||||||
- family-names: Kruse
|
- family-names: Kruse
|
||||||
given-names: Nicolas
|
given-names: Nicolas
|
||||||
orcid: "https://orcid.org/0000-0001-6758-2269"
|
orcid: "https://orcid.org/0000-0001-6758-2269"
|
||||||
version: 1.0.2
|
version: 1.1.0
|
||||||
#date-released: "2025-04-01"
|
#date-released: "2025-04-01"
|
||||||
#identifiers:
|
#identifiers:
|
||||||
# - description: This is the collection of archived snapshots of all versions of My Research Software
|
# - description: This is the collection of archived snapshots of all versions of My Research Software
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# pyhoff
|
# Pyhoff
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
The pyhoff package allows you to read and write the most common
|
The pyhoff package allows you to read and write the most common
|
||||||
|
@ -43,15 +43,15 @@ bk.add_bus_terminals(KL2404, KL2424, KL9100, KL1104, KL3202,
|
||||||
KL4004, KL9010)
|
KL4004, KL9010)
|
||||||
|
|
||||||
# Set 1. output of the first KL2404-type bus terminal to hi
|
# Set 1. output of the first KL2404-type bus terminal to hi
|
||||||
KL2404.select(bk, 0).write_coil(1, True)
|
bk.select(KL2404, 0).write_coil(1, True)
|
||||||
|
|
||||||
# read temperature from the 2. channel of the 2. KL3202-type
|
# read temperature from the 2. channel of the 2. KL3202-type
|
||||||
# bus terminal
|
# bus terminal
|
||||||
t = KL3202.select(bk, 1).read_temperature(2)
|
t = bk.select(KL3202, 1).read_temperature(2)
|
||||||
print(f"t = {t:.1f} °C")
|
print(f"t = {t:.1f} °C")
|
||||||
|
|
||||||
# Set 1. output of the 1. KL4002-type bus terminal to 4.2 V
|
# Set 1. output of the 1. KL4002-type bus terminal to 4.2 V
|
||||||
KL4002.select(bk, 0).set_voltage(1, 4.2)
|
bk.select(KL4002, 0).set_voltage(1, 4.2)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "pyhoff"
|
name = "pyhoff"
|
||||||
version = "1.0.2"
|
version = "1.1.0"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Nicolas Kruse", email="nicolas.kruse@nonan.net" },
|
{ name="Nicolas Kruse", email="nicolas.kruse@nonan.net" },
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue