Suga koubou / TextOLED

Dependents:   Dawson_Controller allsystem_2

Files at this revision

API Documentation at this revision

Comitter:
okini3939
Date:
Tue Jul 31 04:39:41 2012 +0000
Parent:
0:4467cf9395fd
Child:
2:45788bd06d4c
Commit message:
add cursor()

Changed in this revision

TextOLED.cpp Show annotated file Show diff for this revision Revisions of this file
TextOLED.h Show annotated file Show diff for this revision Revisions of this file
--- a/TextOLED.cpp	Thu Jun 21 02:52:20 2012 +0000
+++ b/TextOLED.cpp	Tue Jul 31 04:39:41 2012 +0000
@@ -179,3 +179,11 @@
             return 2;
     }
 }
+
+void TextOLED::cursor (bool flg) {
+    if (flg) {
+        writeCommand(0x0F); // 0000 1 D C B
+    } else {
+        writeCommand(0x0C); // 0000 1 D C B
+    }
+}
--- a/TextOLED.h	Thu Jun 21 02:52:20 2012 +0000
+++ b/TextOLED.h	Tue Jul 31 04:39:41 2012 +0000
@@ -93,6 +93,8 @@
     int rows();
     int columns();
 
+    void cursor (bool flg);
+
 protected:
 
     // Stream implementation functions