Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mb_display.h File Reference

BBC micro:bit display APIs. More...

#include <stdio.h>
#include <zephyr/types.h>
#include <stdbool.h>
#include <zephyr/sys/util.h>
#include <zephyr/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...)
 Generate an image object from a given array rows/columns.
 

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.
 
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.
 
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.
 

Detailed Description

BBC micro:bit display APIs.