diff options
| author | danicampora <daniel@wipy.io> | 2016-02-21 20:38:26 +0100 |
|---|---|---|
| committer | danicampora <daniel@wipy.io> | 2016-02-21 21:53:20 +0100 |
| commit | fe9620a2bdf2d60acfb1e883d18dc0c9bf47d7f1 (patch) | |
| tree | 7d440a2c71ff1b49c80114ed7a8ee0edfa9adc9a /tests/wipy/timer.py.exp | |
| parent | 73c9f85b4ca10bcf8a01942e3638aa8b4331957a (diff) | |
test/wipy: Add Timer class tests.
Diffstat (limited to 'tests/wipy/timer.py.exp')
| -rw-r--r-- | tests/wipy/timer.py.exp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/wipy/timer.py.exp b/tests/wipy/timer.py.exp new file mode 100644 index 000000000..972d8198c --- /dev/null +++ b/tests/wipy/timer.py.exp @@ -0,0 +1,52 @@ +Timer(0, mode=Timer.PERIODIC) +timer.channel(Timer.A, freq=5) +timer.channel(Timer.B, freq=5) +Timer(0, mode=Timer.ONE_SHOT) +timer.channel(Timer.A, freq=50) +timer.channel(Timer.B, freq=50) +Timer(0, mode=Timer.PWM) +timer.channel(Timer.A, freq=50000, polarity=Timer.POSITIVE, duty_cycle=20.00) +timer.channel(Timer.B, freq=50000, polarity=Timer.NEGATIVE, duty_cycle=80.00) +Timer(0, mode=Timer.PWM) +Timer(1, mode=Timer.PERIODIC) +timer.channel(Timer.A, freq=5) +timer.channel(Timer.B, freq=5) +Timer(1, mode=Timer.ONE_SHOT) +timer.channel(Timer.A, freq=50) +timer.channel(Timer.B, freq=50) +Timer(1, mode=Timer.PWM) +timer.channel(Timer.A, freq=50000, polarity=Timer.POSITIVE, duty_cycle=20.00) +timer.channel(Timer.B, freq=50000, polarity=Timer.NEGATIVE, duty_cycle=80.00) +Timer(1, mode=Timer.PWM) +Timer(2, mode=Timer.PERIODIC) +timer.channel(Timer.A, freq=5) +timer.channel(Timer.B, freq=5) +Timer(2, mode=Timer.ONE_SHOT) +timer.channel(Timer.A, freq=50) +timer.channel(Timer.B, freq=50) +Timer(2, mode=Timer.PWM) +timer.channel(Timer.A, freq=50000, polarity=Timer.POSITIVE, duty_cycle=20.00) +timer.channel(Timer.B, freq=50000, polarity=Timer.NEGATIVE, duty_cycle=80.00) +Timer(2, mode=Timer.PWM) +Timer(3, mode=Timer.PERIODIC) +timer.channel(Timer.A, freq=5) +timer.channel(Timer.B, freq=5) +Timer(3, mode=Timer.ONE_SHOT) +timer.channel(Timer.A, freq=50) +timer.channel(Timer.B, freq=50) +Timer(3, mode=Timer.PWM) +timer.channel(Timer.A, freq=50000, polarity=Timer.POSITIVE, duty_cycle=20.00) +timer.channel(Timer.B, freq=50000, polarity=Timer.NEGATIVE, duty_cycle=80.00) +Timer(3, mode=Timer.PWM) +True +True +True +True +True +True +Timer(0, mode=Timer.ONE_SHOT) +Exception +Exception +Exception +Exception +Exception |
