pico-examples icon indicating copy to clipboard operation
pico-examples copied to clipboard

use LED_GPIO not 0

Open taunoe opened this issue 8 months ago • 2 comments

Use defined LED_GPIO not 0

taunoe avatar Nov 23 '23 07:11 taunoe

Sorry - you'll have to push to develop not master

peterharperuk avatar Nov 23 '23 10:11 peterharperuk

Looks like the same thing affects https://github.com/raspberrypi/pico-examples/blob/develop/pico_w/wifi/iperf/picow_iperf.c#L98 too? Some of the other picow examples use cyw43_arch_gpio_put rather than cyw43_gpio_set - most of them use CYW43_WL_GPIO_LED_PIN but https://github.com/raspberrypi/pico-examples/blob/develop/pico_w/wifi/freertos/iperf/picow_freertos_iperf.c#L53 uses a hardcoded 0.

EDIT: And CYW43_WL_GPIO_LED_PIN is defined in https://github.com/raspberrypi/pico-sdk/blob/develop/src/boards/include/boards/pico_w.h#L98

lurch avatar Nov 23 '23 10:11 lurch