> For the complete documentation index, see [llms.txt](https://ubtechedu.gitbook.io/chinese/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ubtechedu.gitbook.io/chinese/standard/sensor/eyelight/seteyelightscene.md).

# setEyelightScene(id,scene,times);

### 参数

| 参数名   | 类型            | 描述                             |
| ----- | ------------- | ------------------------------ |
| id    | unsigned char | 要控制的ID号，范围0\~10                |
| scene | char          | 情景种类（0七彩跑马灯，1Disco，2三原色，3颜色推叠） |
| times | int           | 眼灯亮起表情次数                       |

### 例子

用uKitExplore v2板子控制1号眼灯七彩跑马灯，5次：

```c
#include "uKitExplore2.h"
void setup() {    
    Initialization();    
    setEyelightScene(1,0,5);
}
void loop() {
}
```

用uKitExplore v2板子同时控制1号和2号眼灯七彩跑马灯，5次：

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