Added support for boards without LED.

This commit is contained in:
Oliver Schmidt 2023-04-20 11:56:48 +02:00
parent 2d2bbc56f1
commit 0424d43e0a

View File

@ -57,7 +57,7 @@ void main(void) {
#ifdef RASPBERRYPI_PICO_W
cyw43_arch_init();
#else
#elif defined(PICO_DEFAULT_LED_PIN)
gpio_init(PICO_DEFAULT_LED_PIN);
gpio_set_dir(PICO_DEFAULT_LED_PIN, GPIO_OUT);
#endif
@ -103,7 +103,7 @@ void main(void) {
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, active);
last_active = active;
}
#else
#elif defined(PICO_DEFAULT_LED_PIN)
gpio_put(PICO_DEFAULT_LED_PIN, active);
#endif
}