|
Plant Monitor SAM3X8E
|
High-level display abstraction functions for ST7789 display controller. More...
Go to the source code of this file.
Classes | |
| struct | glyph_t |
| Bitmap representation of character glyph. More... | |
Macros | |
| #define | BG_COLOR 0x0821 |
| #define | FG_COLOR 0xBDF7 |
| #define | GLYPH_WIDTH 6 |
| #define | GLYPH_HEIGHT 12 |
| #define | COLS (DISPLAY_WIDTH/GLYPH_WIDTH) |
| #define | ROWS (DISPLAY_HEIGHT/GLYPH_HEIGHT) |
| #define | TITLE_CS 8 |
| #define | TITLE_RS 1 |
| #define | TITLE_CE 32 |
| #define | TITLE_RE 2 |
| #define | HUMIDITY_CS 8 |
| #define | HUMIDITY_RS 4 |
| #define | HUMIDITY_CE 32 |
| #define | HUMIDITY_RE 5 |
| #define | PRESSURE_CS 8 |
| #define | PRESSURE_RS 5 |
| #define | PRESSURE_CE 32 |
| #define | PRESSURE_RE 6 |
| #define | TEMPERATURE_CS 8 |
| #define | TEMPERATURE_RS 6 |
| #define | TEMPERATURE_CE 32 |
| #define | TEMPERATURE_RE 7 |
Functions | |
| void | display_init (void) |
| Initializes, clears, and draws title on display. | |
| void | display_humidity (void) |
| Draws humidity measurement from BME280. | |
| void | display_pressure (void) |
| Draws pressure measurement from BME280. | |
| void | display_temperature (void) |
| Draws temperature measurement from BME280. | |
High-level display abstraction functions for ST7789 display controller.
Contains wrapper functions to display sensor measurements through ST7789 display driver.
Definition in file display.h.
| #define COLS (DISPLAY_WIDTH/GLYPH_WIDTH) |
| #define ROWS (DISPLAY_HEIGHT/GLYPH_HEIGHT) |
| void display_humidity | ( | void | ) |
Draws humidity measurement from BME280.
Reads and formats humidity measurement from BME280, and displays measurement on screen.
Definition at line 51 of file display.c.
| void display_init | ( | void | ) |
Initializes, clears, and draws title on display.
Initializes ST7789 driver, fills the screen with BG_COLOR, and displays title of application.
| void display_pressure | ( | void | ) |
Draws pressure measurement from BME280.
Reads and formats pressure measurement from BME280, and displays measurement on screen.
Definition at line 62 of file display.c.
| void display_temperature | ( | void | ) |
Draws temperature measurement from BME280.
Reads and formats temperature measurement from BME280, and displays measurement on screen.
Definition at line 73 of file display.c.