Manual

Table Of Contents
Arduino Kit Demo Description 10 DobotPixy Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
55
Attached table 50 Get the color sensor value
Attached table 51 Set the losing-step threshold
Attached table 52 Execute losing-step command
Attached table 53 Set the IR sensor
corresponding interface
Details for port
:
enum
{
IF_PORT_GP1;
IF_PORT_GP2;
IF_PORT_GP4;
IF_PORT_GP5;
};
Return
None
Prototype
uint8_t Dobot_GetColorSensorEx( uint8_t color)
Description
Get the color sensor value
Parameter
color: 0:Red, 1:Green, 2:Blue
Return
Retun the color sensor value
Prototype
void Dobot_SetLostStepSetEx(float lostStepValue)
Description
Set the losing-step threshold. If you do not call this API, the default threshold is 5
Parameter
lostStepValue: losing-step threshold
Return
None
Prototype
void Dobot_SetLostStepCmdEx( void )
Description
Execute losing-step command
Parameter
None
Return
None
Prototype
void Dobot_SetIRSwitchEx( uint8_t enable, uint8_t port)