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

SDK • Re: how use gpio delay time microseconds ?

$
0
0
great :) I test I have now in my multimeter 5khz with 200µS,
I noobs in C i would test this code:

Code:

#include "pico/stdlib.h"int main(){    const uint LED_PIN = 0; // GPIO25    gpio_init(LED_PIN);    gpio_set_dir(LED_PIN, GPIO_OUT);    signed char toto[] = "ok";    while (true)    {        if (toto == "ok")        {            gpio_put(LED_PIN, 1);            sleep_us(100);            gpio_put(LED_PIN, 0);            sleep_us(100);        }    }}
my led in not blink , how I must write test "char" ? the compilation dans uplaod programme is not fail with my debug prob ?

Statistics: Posted by keokod — Sat Nov 30, 2024 2:33 pm



Viewing all articles
Browse latest Browse all 7653

Trending Articles