Skip to content

Commit

Permalink
ports/psoc6/pin.py: Modified for new board support.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Oct 18, 2023
1 parent 625105d commit 68e3aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions tests/psoc6/pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
pin1_name = "P13_7"
pin2_name = "P0_4"
elif "CY8CPROTO-063-BLE" in machine:
print("SKIP")
raise SystemExit
pin1_name = "P6_3"
pin2_name = "P0_4"

# Tests for Output pin
# Instantiate output pin for led operation
# Constr
p1 = Pin(pin1_name)
p1.init(Pin.OUT)
print(p1) # Pin:111 or P13_7, Mode=OUT, Pull=None, Value=1

p1.value(0) # Led glows
print(p1.value()) # None
Expand All @@ -31,6 +30,5 @@
# Tests for Input pin
# Instantiate input pin for button operation
p2 = Pin(pin2_name, Pin.IN)
print(p2) # Pin:4 or P0_4, Mode=IN, Pull=None, Value=1
p2.value()
print(p2.value()) # 1 - button is released
2 changes: 0 additions & 2 deletions tests/psoc6/pin.py.exp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
Pin:111 or P13_7, Mode=OUT, Pull=None
None
None
None
Pin:4 or P0_4, Mode=IN, Pull=None
1

0 comments on commit 68e3aa9

Please sign in to comment.