mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-07-12 15:16:32 +02:00
24 lines
357 B
C
24 lines
357 B
C
#include <stdio.h>
|
|
#include "pico/stdlib.h"
|
|
|
|
#define LED_PIN 16
|
|
|
|
int main(void) {
|
|
uint8_t age;
|
|
|
|
stdio_init_all();
|
|
|
|
gpio_init(LED_PIN);
|
|
gpio_set_dir(LED_PIN, GPIO_OUT);
|
|
|
|
while (true) {
|
|
printf("age: %d\r\n", age);
|
|
|
|
gpio_put(LED_PIN, 1);
|
|
sleep_ms(500);
|
|
|
|
gpio_put(LED_PIN, 0);
|
|
sleep_ms(500);
|
|
}
|
|
}
|