Manual

Table Of Contents
Arduino Kit Demo Description 2 FlickerLED Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
4
#define BUTTON_REDPIN A0 // Interface that the red button connects to
#define BUTTON_GREENPIN A2 // Interface that the green button connects to
#define BUTTON_BLUEPIN A4 // Interface that the blue button connects to
Realization Process
Figure 2.2 shows its realization process.
Figure 2.2 Realization process
Critical Code Description
Before debugging this demo, please select SmartKit library on the Sketch > Include Library
menu.
Initialization.
Program 2.2 Initialization
void setup(){
SmartKit_Init(); //Initialization
}
Set the pin to HIGH or LOW to control the LED indicator.
Program 2.3 Set High/Low level
void loop(){
SmartKit_LedTurn(RED, ON); //Turn on the red LED indicator
delay(500);
SmartKit_LedTurn(RED, OFF); // Turn off the red LED indicator
delay(500);
}