Manual

Table Of Contents
Arduino Kit Demo Description 10 DobotPixy Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
53
Attached table 43 Set I/O output
Attached table 44 Set PWM output
Attached table 45 Get I/O input
typedef enum {
IOFunctionDummy; //Invalid
IOFunctionDO; // I/O output
IOFunctionPWM; // PWM output
IOFunctionDI; //I/O input
IOFunctionADC; //A/D input
IOFunctionDIPU; //Pull-up input
IOFunctionDIPD //Pull-down input
}
Return
None
Prototype
void Dobot_SetIODOEx(uint8_t address,uint8_t value)
Description
Set I/O output
Parameter
address: /O address(1~20)
value: Low level(0), High level(1)
Return
None
Prototype
void Dobot_SetIOPWMEx( uint8_t address, float freq, float duty)
Description
Set PWM output
Parameter
address: I/O address(1~20)
freq: PWM frequency(10HZ~1MHz )
duty: PWM duty circle(0~100)
Return
None
Prototype
uint8_t Dobot_GetIODIEx( uint8_t address)
Description
Get I/O input
Parameter
address: I/O address(1~20)
Return
return I/O input