Skip to content

Commit

Permalink
alternative drawing modes for font drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed May 5, 2020
1 parent 1590b7e commit 4bfd7c9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/epd_driver/include/epd_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,18 @@ void get_text_bounds(GFXfont *font, char *string, int *x, int *y, int *x1,
int *y1, int *w, int *h);

/*!
* Write a line of text to the EPD.
* Write text to the EPD.
*/
void writeln(GFXfont *font, char *string, int *cursor_x, int *cursor_y,
uint8_t *framebuffer);

/**
* Write text to the EPD.
* If framebuffer is NULL, draw mode `mode` is used for direct drawing.
*/
void write_mode(GFXfont *font, char *string, int *cursor_x, int *cursor_y,
uint8_t *framebuffer, enum DrawMode mode);

/**
* Write a (multi-line) string to the EPD.
*/
Expand Down

0 comments on commit 4bfd7c9

Please sign in to comment.