Commit 7148b708 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

test pulse

Showing with 2 additions and 2 deletions
+2 -2
......@@ -159,10 +159,10 @@ class Tx(TxAbstract):
@polarity.setter
def polarity(self, polarity):
print(polarity)
assert polarity in [-1, 0, 1]
print(f'asserted polarity: {self.polarity}')
self._polarity = polarity
print(f'asserted polarity: {self.polarity}')
if polarity == 1:
self.pin0.value = True
self.pin1.value = False
......
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