7#ifndef SPIKE_CPP_API_DISPLAY_H_
8#define SPIKE_CPP_API_DISPLAY_H_
23 enum class EOrientation {
25 LEFT = PBIO_SIDE_LEFT,
26 RIGHT = PBIO_SIDE_RIGHT,
27 BOTTOM = PBIO_SIDE_BOTTOM
60 void setOnePixel(uint8_t row, uint8_t column, uint8_t brightness)
void off()
Definition Display.h:49
void scrollText(const char *text, uint32_t delay)
Definition Display.h:113
void showChar(const char c)
Definition Display.h:90
void showText(const char *text, uint32_t on, uint32_t off)
Definition Display.h:102
void setOrientation(EOrientation up)
Definition Display.h:40
void setImage(uint8_t *image)
Definition Display.h:70
void showNumber(const int8_t num)
Definition Display.h:80
void setOnePixel(uint8_t row, uint8_t column, uint8_t brightness)
Definition Display.h:60
API for the hub built-in display.
pbio_error_t hub_display_text_scroll(const char *text, uint32_t delay)
Displays a text string in scroll mode.
Definition display.c:136
pbio_error_t hub_display_text(const char *text, uint32_t on, uint32_t off)
Displays a text string, one character at a time, with a pause between each character....
Definition display.c:107
pbio_error_t hub_display_number(const int8_t num)
Displays a number in the range -99 to 99. A minus sign (-) is shown as a faint dot in the center of t...
Definition display.c:54
pbio_error_t hub_display_orientation(uint8_t up)
Sets the orientation of the light matrix display.
Definition display.c:28
pbio_error_t hub_display_off(void)
Turns off all the pixels.
Definition display.c:34
pbio_error_t hub_display_pixel(uint8_t row, uint8_t column, uint8_t brightness)
Turns on one pixel at the specified brightness.
Definition display.c:40
pbio_error_t hub_display_image(uint8_t *image)
Displays an image, represented by a matrix of brightness: % values.
Definition display.c:47
pbio_error_t hub_display_char(const char c)
Displays a character or symbol on the light grid. This may be any letter (a–z), capital letter (A–Z) ...
Definition display.c:101