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

General • Re: unable to blink LED on breadboard

$
0
0
Hello is there a download for the pico

Here is the above software for the code given as a picture

Code:

/* https://forums.raspberrypi.com/viewtopic.php?p=2329969&hilit=make+led+blink#p2329969*/#include <stdio.h>#include <pico/stdlib.h>#define led 18int main () {gpio_init(led);gpio_set_dir(led,  GPIO_OUT);while (1) {gpio_put(led,1);sleep_ms(2000);gpio_put(led, 0);sleep_ms(2000);  }}  
I have not done the wiring yet as soon a I can get a program to work I will wire it up. I will be using a ZERO board
So far I am up 4th program the other 3 does not work either

EDIT:
correct #include <pico/stdlib.h> I forgot the less than

Statistics: Posted by ericAuckland — Sun Sep 21, 2025 7:35 pm



Viewing all articles
Browse latest Browse all 7512

Trending Articles