15 lines
261 B
C
15 lines
261 B
C
#include <ch32fun.h>
|
|
|
|
#define LED_PIN PD6
|
|
int main() {
|
|
SystemInit();
|
|
|
|
funGpioInitAll();
|
|
funPinMode(LED_PIN, GPIO_Speed_10MHz | GPIO_CNF_OUT_PP);
|
|
|
|
funDigitalWrite(LED_PIN, 1);
|
|
Delay_Ms(100);
|
|
funDigitalWrite(LED_PIN, 0);
|
|
|
|
while (1);
|
|
}
|