diff options
| author | Daniel Campora <daniel@wipy.io> | 2015-09-04 14:36:52 +0200 |
|---|---|---|
| committer | Daniel Campora <daniel@wipy.io> | 2015-09-10 07:59:41 +0200 |
| commit | 36821d095a2657ab370a8f413f471f4c9ad9a8b5 (patch) | |
| tree | 59ca23ec96e63dd46d486e7e7289733ab2b55a27 /tests/wipy | |
| parent | d5e256486eafab543c3e24850fe87136c2f0575d (diff) | |
cc3200: Add alternate functions list to Pin object.
Also remove pin.high() and pin.low() methods.
Diffstat (limited to 'tests/wipy')
| -rw-r--r-- | tests/wipy/pin.py | 7 | ||||
| -rw-r--r-- | tests/wipy/pin.py.exp | 4 |
2 files changed, 1 insertions, 10 deletions
diff --git a/tests/wipy/pin.py b/tests/wipy/pin.py index cfbe28308..39a52ca01 100644 --- a/tests/wipy/pin.py +++ b/tests/wipy/pin.py @@ -75,12 +75,7 @@ print(pin) # test value in OUT mode pin = Pin(pin_map[0], mode=Pin.OUT) -pin.high() # test high -print(pin.value()) -print(pin()) -pin.low() # test low -print(pin.value()) -print(pin()) +pin.value(0) pin.toggle() # test toggle print(pin()) pin.toggle() # test toggle again diff --git a/tests/wipy/pin.py.exp b/tests/wipy/pin.py.exp index 8c824abe0..87b4d3ef8 100644 --- a/tests/wipy/pin.py.exp +++ b/tests/wipy/pin.py.exp @@ -35,10 +35,6 @@ Pin('GP23', mode=Pin.OUT, pull=Pin.PULL_UP, drive=Pin.HIGH_POWER, alt=-1) Pin('GP23', mode=Pin.ALT, pull=Pin.PULL_NONE, drive=Pin.MED_POWER, alt=1) Pin('GP23', mode=Pin.ALT_OPEN_DRAIN, pull=Pin.PULL_NONE, drive=Pin.MED_POWER, alt=15) 1 -1 -0 -0 -1 0 1 0 |
