Skip to content

Commit 63b6e51

Browse files
committed
tests/ports/psoc-edge/../pin: Added output read check.
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
1 parent b47a321 commit 63b6e51

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/ports/psoc-edge/board_ext_hw/single/pin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616

1717
# Validation different output setting
1818
pin_out.value(1)
19+
print("pin out (self) value 1: ", pin_out.value() == 1)
1920
print("pin out value 1: ", pin_in.value() == 1)
2021

2122
pin_out.value(0)
23+
print("pin out (self) value 0: ", pin_out.value() == 0)
2224
print("pin out value 0: ", pin_in.value() == 0)
2325

2426
pin_out.value(True)

tests/ports/psoc-edge/board_ext_hw/single/pin.py.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ Pin(Pin.cpu.P16_0, mode=Pin.OUT)
22
Pin(Pin.cpu.P16_1, mode=Pin.IN, pull=Pin.PULL_UP)
33
pin out initial value 1: True
44
pin out initial value 0: True
5+
pin out (self) value 1: True
56
pin out value 1: True
7+
pin out (self) value 0: True
68
pin out value 0: True
79
pin out value True: True
810
pin out value False: True

0 commit comments

Comments
 (0)