setEyelightLookUntil(id,face,times,red,green,blue)

设置眼灯亮不同颜色的表情(阻塞)

Parameter

Parameters

Type

Description

id

unsigned char

ID number to be controlled, range 0 ~ 10

face

int

face is the type of expression

0 blinks,

1 sad,

2 hot tears,

3 flashing tears,

4 crying,

5 dizzy,

6 happy,

7 surprised,

8 breathing,

9 blinking,

10 fan,

11 wiper

times

int

Emoticons repeats how many times

red

int

pwm set RGB light, red light brightness: range 0 ~ 255

green

int

pwm set RGB light, green light brightness: range 0 ~ 255

blue

int

pwm set RGB light, blue light brightness: range 0 ~ 255

例子

This feature requires an upgrade to the latest SDK.

Use the uKit Explore v2 board to control the blinking of eye lamp ID-1 in red and 5 times

#include "uKitExplore2.h"
void setup() {    
    Initialization();    
    setEyelightLookUntil(1,0,5,254,0,0);
}

void loop() {
}

Use the uKit Explore v2 board to simultaneously control the blinking of the eye lamp ID-1 in red and 5 times, and then the blinking of the eye lamp ID-2, in red and 5 times:

#include "uKitExplore2.h"
void setup() {    
    Initialization();    
    setEyelightLookUntil(1,0,5,254,0,0);    
    setEyelightLookUntil(2,0,5,254,0,0);
}
void loop() {

}

Last updated