Display: display_clear() is a common command now.

Before control commands were queued up, this was different for
each display.
This commit is contained in:
Markus Hitter 2016-05-28 14:40:32 +02:00
parent 5b9e123e0e
commit 8d7471d3a4
3 changed files with 8 additions and 15 deletions

View File

@ -29,6 +29,14 @@ volatile uint8_t displaybuf[BUFSIZE];
#include "delay.h"
/**
Queue up a clear screen command. Very cheap operation on some displays, like
the HD44780, rather expensive on others, like the SSD1306.
*/
void display_clear(void) {
display_writechar((uint8_t)low_code_clear);
}
/**
Prints a character at the current cursor position.

View File

@ -37,13 +37,6 @@ void display_init(void) {
displaybus_write(0x0C, parallel_4bit_instruction);
}
/**
Queue up a clear screen command. Cheap operation on this display.
*/
void display_clear(void) {
display_writechar((uint8_t)low_code_clear);
}
/**
Sets the cursor to the given position.

View File

@ -114,14 +114,6 @@ void display_init(void) {
}
}
/**
Queue up a clear screen command. Be careful, this is an expensive operation
on this display.
*/
void display_clear(void) {
display_writechar((uint8_t)low_code_clear);
}
/**
Sets the cursor to the given position.