User Guide
GD32L233C-START
11/16
5.
Routine use guide
5.1.
GPIO_Running_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
GD32L233C-START board has two user keys and four LEDs. The keys are Reset key and
Wakeup key. The LEDs are controlled by GPIO.
This demo will show how to light the LEDs.
5.1.2.
DEMO running result
Download the program < 01_GPIO_Running_LED > to the START board, four LEDs can light
cycles.
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
GD32L233C-START board has two user keys and four LEDs. The keys are Reset key and
Wakeup key. The LEDs are controlled by GPIO.
This demo will show how to use the Wakeup key to control the LED2. When press down the
Wakeup key, it will check the input value of the IO port. If the value is 0 and will wait for 100ms.
Check the input value of the IO port again. If the value still is 0, it indicates that the button is
pressed successfully and toggle LED2.
5.2.2.
DEMO running result
Download the program < 02_GPIO_Key_Polling_mode > to the START board, press down
the Wakeup key, LED2 will be turned on. Press down the Wakeup key again, LED2 will be
turned off.