Manual

Table Of Contents
Arduino Kit Demo Description 5 Button Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
13
Use the buttons to turn on and off the LED indicators.
Program 5.3 Use buttons to turn on and off the LED indicators
if (SmartKit_ButtonCheckState(color) == TRUE) // Check the button status
{
SmartKit_LedTurn(color, ON); //Turn on the LED indicator
}
else
{
SmartKit_LedTurn(color, OFF); //Turn off the LED indicator
}
……
…..