
User Guide
GD32VF103T-START
8
5.
Routine use guide
5.1.
GPIO_Runing_LED
5.1.1.
DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use GPIO control the LED
Learn to use SysTick to generate 1ms delay
GD32VF103T-START board has one LED. The LED1 is controlled by GPIO. This demo will
show how to light the LED.
5.1.2.
DEMO running result
Download the program < 01_GPIO_Running_LED > to the START board, LED1 will turn on
and off in sequence with interval of 200ms, repeat the process.
5.2.
GPIO_Key_Polling_mode
5.2.1.
DEMO purpose
This demo includes the following functions of GD32 MCU:
Learn to use GPIO control the LED and the KEY
Learn to use SysTick to generate 1ms delay
GD32VF103T-START board has one LED and Wakeup key. The LED1 is controlled by GPIO.
This demo will show how to use the Wakeup key to control the LED1. When press down the
Wakeup Key, it will check the input value of the IO port. If the value is 1 and will wait for 50ms.
Check the input value of the IO port again. If the value still is 1, it indicates that the button is
pressed successfully and toggle LED1.
5.2.2.
DEMO running result
Download the program < 02_GPIO_Key_Polling_mode > to the START board, the LED1 will
flash once for test, press down the Wakeup Key, LED1 will be turned on. Press down the
Wakeup Key again, LED1 will be turned off.