|
SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
|
API for the hub built-in status light. More...
Functions | |
| pbio_error_t | hub_light_on_hsv (const pbio_color_hsv_t *hsv) |
| Turn the light on with specified color. More... | |
| pbio_error_t | hub_light_on_color (pbio_color_t color) |
| Turn the light on with specified color. More... | |
| pbio_error_t | hub_light_off (void) |
| Turn the light off. More... | |
API for the hub built-in status light.
| pbio_error_t hub_light_off | ( | void | ) |
Turn the light off.
| err | Error number. |
| pbio_error_t hub_light_on_color | ( | pbio_color_t | color | ) |
Turn the light on with specified color.
| color | color. |
| err | Error number. |
| pbio_error_t hub_light_on_hsv | ( | const pbio_color_hsv_t * | hsv | ) |
Turn the light on with specified color.
| hsv | HSV. |
| err | Error number. |