Skip to content

Commit

Permalink
tests/psoc6: Fix Ruff.
Browse files Browse the repository at this point in the history
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
  • Loading branch information
IFX-Anusha committed Mar 26, 2024
1 parent b2e9bd2 commit cb3f0c0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/psoc6/test_inputs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@
# Allocate pin based on board
machine = os.uname().machine
if "CY8CPROTO-062-4343W" in machine:
gpio_pin = 'P12_1'
input_pin = 'P13_6'
gpio_pin = "P12_1"
input_pin = "P13_6"
elif "CY8CPROTO-063-BLE" in machine:
gpio_pin = 'P5_2'
input_pin = 'P12_7'
gpio_pin = "P5_2"
input_pin = "P12_7"

print("bitstream execution")
timing = [3000000, 1000000, 8000000, 5000000]
buf = bytearray([0xF0])
p0 = Pin(gpio_pin, Pin.OUT, value=0)
input_pin = Pin(input_pin, Pin.IN)
while(input_pin.value()==1):
while input_pin.value() == 1:
pass
for i in range(2):
bitstream(p0, 0, timing, buf)


0 comments on commit cb3f0c0

Please sign in to comment.