PebbleOS
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
display.h File Reference
#include <board/display.h>
#include <applib/graphics/gtypes.h>
#include <stdint.h>
#include <stdbool.h>

Data Structures

struct  DisplayRow
 Row to send to the display. More...
 

Typedefs

typedef bool(* NextRowCallback) (DisplayRow *row)
 Provide the next row of an update.
 
typedef void(* UpdateCompleteCallback) (void)
 Notification that an update has completed.
 

Functions

void display_update_boot_frame (uint8_t *framebuffer)
 Show a boot animation frame.
 
void display_init (void)
 Initialize the display.
 
void display_clear (void)
 Clear the display, where supported.
 
void display_set_enabled (bool enabled)
 Turn the display on or off.
 
void display_set_rotated (bool rotated)
 Set whether the image is rotated by 180 degrees.
 
void display_update (NextRowCallback nrcb, UpdateCompleteCallback uccb)
 Start a display update.
 
bool display_update_in_progress (void)
 Check whether an update is in progress.