SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
|
API for the hub built-in button. [詳解]
#include <stdint.h>
#include <pbio/button.h>
#include <pbio/error.h>
型定義 | |
typedef enum _hub_button_t | hub_button_t |
各ハブ内蔵ボタンのビットマスク値 | |
列挙型 | |
enum | _hub_button_t { HUB_BUTTON_LEFT = PBIO_BUTTON_LEFT , HUB_BUTTON_CENTER = PBIO_BUTTON_CENTER , HUB_BUTTON_RIGHT = PBIO_BUTTON_RIGHT , HUB_BUTTON_BT = PBIO_BUTTON_RIGHT_UP } |
各ハブ内蔵ボタンのビットマスク値 | |
関数 | |
pbio_error_t | hub_button_is_pressed (hub_button_t *pressed) |
ハブ内蔵ボタンが押されているか調べる. [詳解] | |
API for the hub built-in button.