ch32_oled/oled_gol.c
2024-04-06 20:13:04 +02:00

23 lines
355 B
C

/* Template app on which you can build your own. */
#include "ch32v003fun.h"
#include <stdio.h>
#define PIN_LED PC4
int main()
{
SystemInit();
funGpioInitAll();
funPinMode(PIN_LED, GPIO_Speed_10MHz | GPIO_CNF_OUT_PP);
while (1)
{
funDigitalWrite(PIN_LED, FUN_HIGH);
Delay_Ms(150);
funDigitalWrite(PIN_LED, FUN_LOW);
Delay_Ms(150);
}
}