setEyelightSceneUntil(id,scene,times)

Set the eye lamp to the different scene mode (blocking).

Parameter

Parameters

Type

Description

id

unsigned char

ID number to be controlled, range 0 ~ 10

scene

char

Scene types

0 colorful horse race lamp,

1 disco,

2 three primary colors,

3 color stacking

times

int

Emoticons repeats how many times

Example

This feature requires an upgrade to the latest SDK.

Use the uKit Explore v2 board to control the eye lamp ID-1 to display colorful horse race lamp and repeat 5 times,

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

void loop() {

}

Use the uKit Explore v2 board to control the eye lamp ID-1 to display colorful horse race lamp, repeat 5 times, and then the eye lamp ID-2 to display colorful horse race lamp, repeat 5 times.

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

void loop() {

}

Last updated