SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
Functions
display.h File Reference

API for the hub built-in display. More...

#include <stdint.h>
#include <pbio/error.h>
#include <pbio/light_matrix.h>

Go to the source code of this file.

Functions

pbio_error_t hub_display_orientation (uint8_t up)
 Sets the orientation of the light matrix display. More...
 
pbio_error_t hub_display_off (void)
 Turns off all the pixels. More...
 
pbio_error_t hub_display_pixel (uint8_t row, uint8_t column, uint8_t brightness)
 Turns on one pixel at the specified brightness. More...
 
pbio_error_t hub_display_image (uint8_t *image)
  Displays an image, represented by a matrix of brightness: % values. More...
 
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 the display. More...
 
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) or one of the following symbols: !"#$%&'()*+,-./:;<=>?@[]^_`{|}. More...
 
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. After the last character is shown, all lights turn off. More...
 
pbio_error_t hub_display_text_scroll (const char *text, uint32_t delay)
 Displays a text string in scroll mode. More...
 

Detailed Description

API for the hub built-in display.

Author
Matsubara Yutaka