Commit eb45a67b authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Tries inject_current

Showing with 10 additions and 0 deletions
+10 -0
......@@ -99,6 +99,16 @@ class Tx(Tx_mb_2023):
if not subclass_init:
self.exec_logger.event(f'{self.model}\ttx_init\tend\t{datetime.datetime.utcnow()}')
@property
def current(self):
return self._current
@current.setter
def current(self, value):
assert value >= 0.
self._current = value
self.pwr.current = value:
def inject(self, polarity=1, injection_duration=None):
# add leds?
self.pin6.value = True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment