11#ifndef ZEPHYR_INCLUDE_DISPLAY_MB_DISPLAY_H_
12#define ZEPHYR_INCLUDE_DISPLAY_MB_DISPLAY_H_
96#define MB_IMAGE(_rows...) { .r = { _rows } }
154 const
char *fmt, ...);
void mb_display_image(struct mb_display *disp, uint32_t mode, int32_t duration, const struct mb_image *img, uint8_t img_count)
Display one or more images on the BBC micro:bit LED display.
mb_display_mode
Display mode.
Definition mb_display.h:55
struct mb_display * mb_display_get(void)
Get a pointer to the BBC micro:bit display object.
void mb_display_print(struct mb_display *disp, uint32_t mode, int32_t duration, const char *fmt,...)
Print a string of characters on the BBC micro:bit LED display.
void mb_display_stop(struct mb_display *disp)
Stop the ongoing display of an image.
@ MB_DISPLAY_MODE_SINGLE
Display images sequentially, one at a time.
Definition mb_display.h:60
@ MB_DISPLAY_MODE_DEFAULT
Default mode ("single" for images, "scroll" for text).
Definition mb_display.h:57
@ MB_DISPLAY_MODE_SCROLL
Display images by scrolling.
Definition mb_display.h:63
@ MB_DISPLAY_FLAG_LOOP
Loop back to the beginning when reaching the last image.
Definition mb_display.h:68
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Representation of a BBC micro:bit display image.
Definition mb_display.h:37
uint8_t c1
Definition mb_display.h:40
struct mb_image::@133::@135 r[5]
uint8_t row[5]
Definition mb_display.h:46
uint8_t c5
Definition mb_display.h:44
uint8_t c4
Definition mb_display.h:43
uint8_t c3
Definition mb_display.h:42
uint8_t c2
Definition mb_display.h:41