Browse Source

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>
Sergey Kiselev 9 years ago
parent
commit
dc97adf578
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      examples/c++/eboled.cxx

+ 3
- 2
examples/c++/eboled.cxx View File

@@ -34,10 +34,11 @@ int main(int argc, char **argv)
34 34
   upm::EBOLED *lcd = new upm::EBOLED();
35 35
 
36 36
   lcd->clear();
37
-  lcd->setCursor(2, 0);
37
+  lcd->setCursor(10, 15);
38 38
   lcd->write("Hello");
39
-  lcd->setCursor(3, 5);
39
+  lcd->setCursor(30, 15);
40 40
   lcd->write("World!");
41
+  lcd->refresh();
41 42
   
42 43
   cout << "Sleeping for 5 seconds..." << endl;
43 44
   sleep(5);