ch32_oled/oled_gol.c

24 lines
355 B
C
Raw Normal View History

2024-04-06 20:13:04 +02:00
/* 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);
}
}