Commit 330e0368 authored by Robey Pointer's avatar Robey Pointer
Browse files

add back invert_line

parent 140a7a17
......@@ -53,6 +53,16 @@ void display_clear_line(uint8_t line) {
}
}
void display_invert_line(uint8_t line) {
for (int i = line * text_width; i < (line + 1) * text_width; i++) {
text_invert[i >> 3] |= (1 << (i & 7));
}
}
uint8_t display_text_height(void) {
return text_height;
}
// scroll up one line.
void display_scroll(void) {
memmove(text_cells, text_cells + text_width, (text_height - 1) * text_width);
......
......@@ -31,6 +31,8 @@ extern const monospace_font_t font_bizcat;
void display_init(const monospace_font_t *font);
void display_clear(void);
void display_clear_line(uint8_t line);
void display_invert_line(uint8_t line);
uint8_t display_text_height(void);
void display_scroll(void);
void display_putc(uint8_t c);
void display_write_len(const char *text, int len);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment