actualizacion
This commit is contained in:
16
PICO/blink/main.c
Normal file
16
PICO/blink/main.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "pico/stdlib.h"
|
||||
#include "hardware/gpio.h"
|
||||
|
||||
int main() {
|
||||
const uint LED_PIN = 25;
|
||||
gpio_init(LED_PIN);
|
||||
gpio_set_dir(LED_PIN, GPIO_OUT);
|
||||
|
||||
while (true) {
|
||||
gpio_put(LED_PIN, 1);
|
||||
sleep_ms(100);
|
||||
gpio_put(LED_PIN, 0);
|
||||
sleep_ms(100);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user