SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
light.h
[詳解]
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#include <stdint.h>
38#include <pbio/error.h>
39#include <pbio/color.h>
40
52pbio_error_t hub_light_on_hsv(const pbio_color_hsv_t *hsv);
53
65pbio_error_t hub_light_on_color(pbio_color_t color);
66
76pbio_error_t hub_light_off(void);
77
78#endif // _HUB_LIGHT_H_
79
pbio_error_t hub_light_on_color(pbio_color_t color)
指定された色でライトを点灯させる.
Definition: light.c:25
pbio_error_t hub_light_off(void)
ライトを消灯させる.
Definition: light.c:29
pbio_error_t hub_light_on_hsv(const pbio_color_hsv_t *hsv)
指定された HSV でライトを点灯させる.
Definition: light.c:21