|
SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
|
#include <Light.h>
データ構造 | |
| struct | HSV |
公開型 | |
| enum class | EColor { NONE = PBIO_COLOR_NONE , BLACK = PBIO_COLOR_BLACK , GRAY = PBIO_COLOR_GRAY , WHITE = PBIO_COLOR_WHITE , RED = PBIO_COLOR_RED , BROWN = PBIO_COLOR_BROWN , ORANGE = PBIO_COLOR_ORANGE , YELLOW = PBIO_COLOR_YELLOW , GREEN = PBIO_COLOR_GREEN , SPRING_GREEN = PBIO_COLOR_SPRING_GREEN , CYAN = PBIO_COLOR_CYAN , BLUE = PBIO_COLOR_BLUE , VIOLET = PBIO_COLOR_VIOLET , MAGENTA = PBIO_COLOR_MAGENTA } |
公開メンバ関数 | |
| Light (void)=default | |
| void | turnOnHSV (Light::HSV &colorHSV) |
| void | turnOnColor (Light::EColor color) |
| void | turnOff () const |
| bool | hasError () |
SPIKE ハブ内蔵ステータスライトクラス
|
strong |
ライト用カラー
|
default |
コンストラクタ
| - |
|
inline |
インスタンス生成が正常にできたかどうかを確認するための共通メソッド Lightでは複数生成が問題ないので、常にfalseを返す
|
inline |
ライトを消灯させる
| void Light::turnOnColor | ( | Light::EColor | color | ) |
指定された色でライトを点灯させる
| color | 色 |
| void Light::turnOnHSV | ( | Light::HSV & | colorHSV | ) |
指定されたHSVでライトを点灯させる
| colorHSV | HSV |