SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
Functions
Light

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...
 

Detailed Description

API for the hub built-in status light.

Function Documentation

◆ hub_light_off()

pbio_error_t hub_light_off ( void  )

Turn the light off.

Return values
errError number.

◆ hub_light_on_color()

pbio_error_t hub_light_on_color ( pbio_color_t  color)

Turn the light on with specified color.

Parameters
colorcolor.
Return values
errError number.

◆ hub_light_on_hsv()

pbio_error_t hub_light_on_hsv ( const pbio_color_hsv_t *  hsv)

Turn the light on with specified color.

Parameters
hsvHSV.
Return values
errError number.