SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
Loading...
Searching...
No Matches
light.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2/*
3 * API for the hub built-in status light.
4 *
5 * Copyright (c) 2022 Embedded and Real-Time Systems Laboratory,
6 * Graduate School of Information Science, Nagoya Univ., JAPAN
7 */
8
34#ifndef _HUB_LIGHT_H_
35#define _HUB_LIGHT_H_
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#include <stdint.h>
42#include <pbio/error.h>
43#include <pbio/color.h>
44
56pbio_error_t hub_light_on_hsv(const pbio_color_hsv_t *hsv);
57
69pbio_error_t hub_light_on_color(pbio_color_t color);
70
80pbio_error_t hub_light_off(void);
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif // _HUB_LIGHT_H_
87
pbio_error_t hub_light_on_color(pbio_color_t color)
Turn the light on with specified color.
Definition light.c:25
pbio_error_t hub_light_off(void)
Turn the light off.
Definition light.c:29
pbio_error_t hub_light_on_hsv(const pbio_color_hsv_t *hsv)
Turn the light on with specified color.
Definition light.c:21