SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
|
API for the hub built-in button. More...
#include <stdint.h>
#include <pbio/button.h>
#include <pbio/error.h>
Go to the source code of this file.
Typedefs | |
typedef enum _hub_button_t | hub_button_t |
Bitmask definitions for each built-in button on the hub. | |
Enumerations | |
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 } |
Bitmask definitions for each built-in button on the hub. | |
Functions | |
pbio_error_t | hub_button_is_pressed (hub_button_t *pressed) |
Checks which buttons are currently pressed. More... | |
API for the hub built-in button.