frapp_psi.iomopinmax: digital output and SimpleVoltageInput

- read back value in DigitalOutput.write_target
- correct scale factor in SimpleVoltageInput
This commit is contained in:
2025-10-23 10:47:02 +02:00
parent cda6e08d6c
commit 82663a142e

View File

@@ -100,6 +100,7 @@ class DigitalOutput(DigitalInput, Writable):
def write_target(self, value):
self.write(self.addr, value == self.true_level, 1)
self.read_value()
class AnalogInput(Base, Readable):
@@ -142,8 +143,7 @@ class VoltageInput(AnalogInput):
class SimpleVoltageInput(AnalogInput):
"""version for iono pi"""
scale = 1e-3
scale = 1e6 / 1024 # probably a firmware or documentation error
class LogVoltageInput(VoltageInput):