Skip to content

Commit be9ed27

Browse files
authored
GPIO DOUT pin list re-order (#169)
* Update gpio_configs.py Forgotten change * fixed LED integration test
1 parent 7c5cd6a commit be9ed27

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/edgepi/gpio/gpio_configs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ class DOUTPins(Enum):
232232
]
233233

234234
_list_of_DOUT_expander_gpios =[
235-
DOUTPins.DOUT3.value, DOUTPins.DOUT4.value,
236-
DOUTPins.DOUT5.value, DOUTPins.DOUT6.value,
237-
DOUTPins.DOUT7.value, DOUTPins.DOUT8.value]
235+
DOUTPins.DOUT8.value, DOUTPins.DOUT7.value,
236+
DOUTPins.DOUT6.value, DOUTPins.DOUT5.value,
237+
DOUTPins.DOUT4.value, DOUTPins.DOUT3.value]
238238

239239

240240
def _generate_DAC_pins(): #pylint: disable=C0103
@@ -339,7 +339,6 @@ def _generate_DOUT_cpu_pins(): #pylint: disable=C0103
339339
pin_dict[pin] = GpioChipPinInfo(dir = "out", bias = "pull_down")
340340
return pin_dict
341341

342-
#TODO: Doubl check pinouts
343342
def _generate_DOUT_expander_pins(): #pylint: disable=C0103
344343
"""
345344
Args:

tests/integration_tests/test_led/test_led.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def fixture_gpio():
2626
])
2727
def test_turn_led_on(led_name, led, gpio):
2828
led.turn_led_on(led_name)
29-
state = gpio.read_pin_sate(led_name.value)
29+
state = gpio.read_pin_state(led_name.value)
3030
assert state is True
3131

3232

@@ -42,7 +42,7 @@ def test_turn_led_on(led_name, led, gpio):
4242
])
4343
def test_turn_led_off(led_name, led, gpio):
4444
led.turn_led_off(led_name)
45-
state = gpio.read_pin_sate(led_name.value)
45+
state = gpio.read_pin_state(led_name.value)
4646
assert state is False
4747

4848

0 commit comments

Comments
 (0)