Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3838

Troubleshooting • Re: Pico W: Lifeless Blink example

$
0
0
Don't forget that the Pico W onboard LED is not on the same GPIO as the ordinary (non-WiFi) Pico

Code:

/** * Copyright (c) 2022 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */#include "pico/stdlib.h"#include "pico/cyw43_arch.h"int main() {    stdio_init_all();    if (cyw43_arch_init()) {        printf("WiFi init failed");        return -1;    }    while (true) {        cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);        sleep_ms(250);        cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);        sleep_ms(250);    }}
from https://github.com/raspberrypi/pico-exa ... ow_blink.c

Statistics: Posted by neilgl — Mon Jan 29, 2024 4:09 pm



Viewing all articles
Browse latest Browse all 3838

Trending Articles