Recognize the specific color from the color sensor
Parameters
Type
Description
id
unsigned char
ID number to be controlled, range 0 ~ 10
color
String
Key in the color to be detected. Currently supported: Red, Green, Blue, Yellow, Cyan, Purple, Orange, Black, White, Gray
number
boolean
Return True if the set color is the same as the detected color.
Last updated 5 years ago