mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
eboled: Call refresh() to actually put the text on the display. Use
reasonable coordinates for text. Signed-off-by: Sergey Kiselev <sergey.kiselev@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
181b5f17ea
commit
dc97adf578
@ -34,10 +34,11 @@ int main(int argc, char **argv)
|
||||
upm::EBOLED *lcd = new upm::EBOLED();
|
||||
|
||||
lcd->clear();
|
||||
lcd->setCursor(2, 0);
|
||||
lcd->setCursor(10, 15);
|
||||
lcd->write("Hello");
|
||||
lcd->setCursor(3, 5);
|
||||
lcd->setCursor(30, 15);
|
||||
lcd->write("World!");
|
||||
lcd->refresh();
|
||||
|
||||
cout << "Sleeping for 5 seconds..." << endl;
|
||||
sleep(5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user