Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit 43130ab

Browse files
committed
Removing the i/o signalling byte from GPIO instructions as this is no longer required under the new UOS API.
1 parent 03879c0 commit 43130ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

uoshardware/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def set_gpio_output(
136136
return self.__execute_instruction(
137137
UOSFunctions.set_gpio_output,
138138
InstructionArguments(
139-
payload=(pin, 0, level),
139+
payload=(pin, level),
140140
check_pin=pin,
141141
volatility=volatility,
142142
),
@@ -155,7 +155,7 @@ def get_gpio_input(
155155
return self.__execute_instruction(
156156
UOSFunctions.get_gpio_input,
157157
InstructionArguments(
158-
payload=(pin, 1, level),
158+
payload=(pin, level),
159159
expected_rx_packets=2,
160160
check_pin=pin,
161161
volatility=volatility,

0 commit comments

Comments
 (0)