diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-02-06 13:48:01 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-02-06 13:50:34 +1100 |
| commit | d3bb3e38df3fcb2b980d37e06fde7eac9e689f6a (patch) | |
| tree | c40a640ef34bceddc2d1aac602717b23f58d2196 /tests/pyb/pin.py | |
| parent | 27c149efe030b6fd24c0cc1475ea509da1a72821 (diff) | |
tests/pyb: Adjust tests so they can run on PYB and PYBLITE.
A few tests still fail on PYBLITE, and that's due to differences in the
available peripheral block numbers on the different MCUs (eg I2C(2)
exists on one, but it's I2C(3) on the other).
Diffstat (limited to 'tests/pyb/pin.py')
| -rw-r--r-- | tests/pyb/pin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pyb/pin.py b/tests/pyb/pin.py index b3eb87b60..9b3788343 100644 --- a/tests/pyb/pin.py +++ b/tests/pyb/pin.py @@ -1,14 +1,14 @@ from pyb import Pin -p = Pin('X1', Pin.IN) +p = Pin('Y1', Pin.IN) print(p) print(p.name()) print(p.pin()) print(p.port()) -p = Pin('X1', Pin.IN, Pin.PULL_UP) -p = Pin('X1', Pin.IN, pull=Pin.PULL_UP) -p = Pin('X1', mode=Pin.IN, pull=Pin.PULL_UP) +p = Pin('Y1', Pin.IN, Pin.PULL_UP) +p = Pin('Y1', Pin.IN, pull=Pin.PULL_UP) +p = Pin('Y1', mode=Pin.IN, pull=Pin.PULL_UP) print(p) print(p.value()) |
