Skip to content

Commit a47631f

Browse files
committed
tests/ports/psoc-edge/../pin: Added print pin check to test.
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
1 parent 50e5a5a commit a47631f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from machine import Pin
22

3-
pin1_name = "P16_0"
3+
pin_out_name = "P16_0" # Use string label
4+
pin_out = Pin(pin_out_name, mode=Pin.OUT, value=True)
5+
print(pin_out)
46

5-
pin_out = Pin(pin1_name, mode=Pin.OUT, value=True)
7+
pin_in = Pin.cpu.P16_1
8+
pin_in.init(mode=Pin.IN, pull=Pin.PULL_UP)
9+
print(pin_in)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Pin(Pin.cpu.P16_0, mode=Pin.OUT)
2+
Pin(Pin.cpu.P16_1, mode=Pin.IN, pull=Pin.PULL_UP)

0 commit comments

Comments
 (0)