Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
mb_display.h File Reference

BBC micro:bit display APIs. More...

#include <stdio.h>
#include <zephyr/types.h>
#include <stdbool.h>
#include <sys/util.h>
#include <toolchain.h>

Go to the source code of this file.

Data Structures

struct  mb_image
 Representation of a BBC micro:bit display image. More...
 

Macros

#define MB_IMAGE(_rows...)   { .r = { _rows } }
 Generate an image object from a given array rows/columns. More...
 

Enumerations

enum  mb_display_mode { MB_DISPLAY_MODE_DEFAULT , MB_DISPLAY_MODE_SINGLE , MB_DISPLAY_MODE_SCROLL , MB_DISPLAY_FLAG_LOOP = BIT(16) }
 Display mode. More...
 

Functions

struct mb_display * mb_display_get (void)
 Get a pointer to the BBC micro:bit display object. More...
 
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. More...
 
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. More...
 
void mb_display_stop (struct mb_display *disp)
 Stop the ongoing display of an image. More...
 

Detailed Description

BBC micro:bit display APIs.