
TODO
[HW Team] Need hardware engineers to add this module's specific parameters.
Block API
Choose a RGB color
You can choose a given color to show.
function RGBChooseColor(connName: ConnName, color: MiNodeColor): void;
Parameters
•
connName
is the analog connector's name.this module can be pluged into both
analog connector and digital connector.
•
color
is set of colors.That is red,green,blue,yellow,pink,cyan and white.you can
choose one color from the given color to light up you RGB module.
Set a specific RGB color by setting rgb gray value
您可以通過設置三個灰度值來更改
RGB
的顏色。
You can change the color of the RGB by setting the three gray values.
function RGBSetColor(connName: ConnName, red: number, green: number, bl
ue: number): void;
Parameters
•
connName
is the analog connector's name.this module can be pluged into both
analog connector and digital connector.
•
red
is the gray value of red,range from 0 to 255.
•
green
is the gray value of green,range from 0 to 255.