19 lines
337 B
C
19 lines
337 B
C
#include "ch32fun.h"
|
|
|
|
#define LED_PIN PD6
|
|
|
|
int main() {
|
|
SystemInit();
|
|
|
|
// Enable GPIOs
|
|
funGpioInitAll();
|
|
|
|
funPinMode(LED_PIN, GPIO_Speed_10MHz | GPIO_CNF_OUT_PP);
|
|
|
|
while (1) {
|
|
funDigitalWrite(LED_PIN, FUN_HIGH);
|
|
Delay_Ms(250);
|
|
funDigitalWrite(LED_PIN, FUN_LOW);
|
|
Delay_Ms(250);
|
|
}
|
|
}
|