AiStarter User Guide 7API Function
IssueV1.0.3(2018-09-01) AiStarter User Guide Copyright © Yuejiang Technology Co., Ltd
35
7.17 Initializing Switch
7.18 Getting Switch Status
Table 7.15 Get switch status
int AIStarter_SmartBotGetKeyValue (int key)
key: Select switch
enum{
SW1,
SW2,
SW3
};
Return 1: Press down
Return 0: Release
7.19 Setting LED Status
int MobilePlatform_SmartBotSetKeyInit ()
int AIStarter _SmartBotSetLED(int port,int state)
port: Select LED
enum{
LED1
LED2
}
state: Set status
enum{
ON,
OFF,
BLINK
};