lebai sdk
1.1.28
lebai c++ sdk with swig to support sereval languages.
|
灯板相关的接口. More...
Functions | |
void | lebai::l_master::Robot::set_led (unsigned int mode, unsigned int speed, const std::vector< unsigned int > &color) |
设置LED灯状态. More... | |
void | lebai::l_master::Robot::set_voice (unsigned int voice, unsigned int volume) |
设置声音 More... | |
void | lebai::l_master::Robot::set_fan (unsigned int status) |
开关风扇 More... | |
灯板相关的接口.
void lebai::l_master::Robot::set_fan | ( | unsigned int | status | ) |
开关风扇
status | 状态.1:关闭;2:开启 |
void lebai::l_master::Robot::set_led | ( | unsigned int | mode, |
unsigned int | speed, | ||
const std::vector< unsigned int > & | color | ||
) |
设置LED灯状态.
mode | 亮灯模式.0:不变;1:关闭;2:常亮;3:呼吸;4:均分旋转;5:同色旋转;6:闪烁 |
speed | 速度.1:快速;2:正常;3:慢速 |
color | 最多包含 4 个 0 ~ 15 之间的整数 |
void lebai::l_master::Robot::set_voice | ( | unsigned int | voice, |
unsigned int | volume | ||
) |
设置声音
voice | 声音列表 |
volume | 音量.0:静音;1:低;2:正常;3:高 |