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