led

Overview

The LED demo is used to demonstrate how to use new components (serial manager, LED, Button, GPIO adapter, Shell, Debug console, Uart adapter, and so on). The main function of the demo is to control the led by using the shell or button. For shell, please enter “help” to get the help information firstly. Turn on LED by using command “led on”. And turn off LED by using command “led off”. For button, please press the button corresponding to control LED. Turn on LED when the button is pressed with long press or double click event. And turn off LED when the button is pressed with short press or one click event.