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

test pulse

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