qclk/mcu/main.c
2024-05-11 00:57:43 +01:00

27 lines
474 B
C

#include <stdio.h>
#include "hardware/gpio.h"
#include "pico/stdlib.h"
#include "pico/binary_info.h"
const uint PIN_DIGIT_BASE = 18;
const uint PIN_SEGMENT_BASE = 2;
const uint DIGITS = 4;
int main() {
bi_decl(bi_program_description("qCLK driver."));
stdio_init_all();
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);
while (1) {
gpio_put(LED_PIN, 0);
sleep_ms(250);
gpio_put(LED_PIN, 1);
puts("Hello World\n");
sleep_ms(1000);
}
}