Manual

Table Of Contents
Arduino Kit Demo Description 10 DobotPixy Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
57
Attached table 56 Set the specified digital pin to HIGH or LOW
Attached table 57 Read the specified digital pin
Attached table 58 Write the specified analog pin
Attached table 59 Read the specified analog pin
Pixy Common Function of Pixy
When the Pixy vision sensor is used in Arduino demo, the Pixy APIs need to be called. This
Return
None
Prototype
void digitalWrite( uint8_t pin, uint8_t value)
Description
Set the specified digital pin to HIGH or LOW
Parameter
pin: Pin number of the pin
mode: HIGH or LOW
Return
None
Prototype
int digitalRead( uint8_t pin)
Description
Read the specified digital pin
Parameter
pin: Pin number of the pin
Return
HIGH or LOW
Prototype
void analogWrite( uint8_t pin, int value)
Description
Write the specified analog pin for controlling the brightness of LED indicator or
the motor speed
Parameter
pin: Pin number of the pin
value: 0-255. 0: OFF; 255: ON
Return
None
Prototype
int analogRead( uint8_t pin)
Description
Read the specified analog pin
Parameter
pin: Pin number of the pin
Return
0-1023