Fix sample project

This commit is contained in:
lukstep
2022-09-17 11:06:46 +02:00
parent 255af27161
commit 2381b1d5d8

4
main.c
View File

@@ -3,7 +3,7 @@
#include "hardware/gpio.h" #include "hardware/gpio.h"
#include "pico/binary_info.h" #include "pico/binary_info.h"
int LED_PIN = 25; const int LED_PIN = 25;
int main () int main ()
{ {
@@ -12,7 +12,7 @@ int main ()
stdio_init_all(); stdio_init_all();
gpio_init(); gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT); gpio_set_dir(LED_PIN, GPIO_OUT);
while(1) while(1)