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#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)
指定された色でライトを点灯させる.
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