Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TextOLED by
Revision 1:df8722660f48, committed 2012-07-31
- 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
