Manual
Table Of Contents
- 1. Introduction
- 2. FlickerLED Demo
- 3. AlarmLED Demo
- 4. AdjustLED Demo
- 5. Button Demo
- 6. SeedVoiceLED Demo
- 7. MoveBlock Demo
- 8. SeedVoiceDobot Demo
- 9. JoyStick Demo
- 10. DobotPixy Demo
- Appendix A Common Function Description
- Appendix B Installing Suction Cup Kit
- Appendix C Pixy Install and Configure Pixy
- Appendix D Vision Recognition Initialization Process
- Appendix E Multiplexed I/O Interface Description of V1 Dobot Magician
- Appendix F Multiplexed I/O Interface Description of V2 Dobot Magician
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
}
……
…..