|
Plant Monitor SAM3X8E
|
Interface for ST7789 driver. More...
#include "drivers/st7789.h"Go to the source code of this file.
Functions | |
| void | st7789_init (void) |
| ST7789 initialization. | |
| void | st7789_clear (const uint16_t color) |
| Clears display. | |
| void | st7789_draw_glyph (const uint16_t xs, const uint16_t ys, const uint16_t glyph_width, const uint16_t glyph_height, const uint16_t fg_color, const uint16_t bg_color, const uint8_t *bitmap_data) |
| Draws a character glyph to the display. | |
Interface for ST7789 driver.
Contains implementations of functions for initializing the display, clearing, and rendering glyphs.
Definition in file st7789.c.
| void st7789_clear | ( | const uint16_t | color | ) |
Clears display.
Fills display with a single color, which can be thought of as "clearing" the scren.
| color | Color to fill display with upon clear. |
Definition at line 190 of file st7789.c.
| void st7789_draw_glyph | ( | const uint16_t | xs, |
| const uint16_t | ys, | ||
| const uint16_t | glyph_width, | ||
| const uint16_t | glyph_height, | ||
| const uint16_t | fg_color, | ||
| const uint16_t | bg_color, | ||
| const uint8_t * | bitmap_data ) |
Draws a character glyph to the display.
Takes coordinates, glyph dimensions, and bitmap data to display a character glyph on the screen.
| xs | Column to start drawing glyph. |
| ys | Row to start drawing glyph. |
| glyph_width | Width of passed glyph. |
| glyph_height | Height of passed glyph. |
| fg_color | Color |
| bg_color | |
| bitmap_data | Byte array containing glyph data. Each row is a single byte. |
Definition at line 206 of file st7789.c.
| void st7789_init | ( | void | ) |
ST7789 initialization.
Configures and initializes ST7789 for drawing.
Definition at line 108 of file st7789.c.