Fixed language problems. Menu is totally independent from constant strings now, all messages are taken from dedicated include file "MenuText.h"
Makefile is adapted Added "Dispay_writeCentered" function, which safes a lot of code git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@281 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -407,6 +407,8 @@ ErrorStatus setCursorToPosition(const struct DisplayDevice* self, unsigned int r
|
||||
|
||||
static ErrorStatus write(const struct DisplayDevice* self, const char* buffer, size_t length, size_t row, size_t column)
|
||||
{
|
||||
///TODO REMOVE
|
||||
// volatile int i;
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
if (self->initialized)
|
||||
{
|
||||
@@ -418,6 +420,8 @@ static ErrorStatus write(const struct DisplayDevice* self, const char* buffer, s
|
||||
// Set cursor on display
|
||||
returnValue = NHD0420_setCursorToPosition((const struct NHD0420*)self, row, column);
|
||||
|
||||
// for (i = 0; i < 3000; i++);
|
||||
|
||||
if (returnValue == SUCCESS)
|
||||
{
|
||||
// Send one byte at a time (display requirement)
|
||||
@@ -427,6 +431,7 @@ static ErrorStatus write(const struct DisplayDevice* self, const char* buffer, s
|
||||
returnValue = NHD0420_sendData((const struct NHD0420*)self, &buffer[loopcounter], 1);
|
||||
}
|
||||
}
|
||||
// for (i = 0; i < 1000; i++);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user