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
Diff: TextOLED.cpp
- Revision:
- 1:df8722660f48
- Parent:
- 0:4467cf9395fd
- Child:
- 2:45788bd06d4c
diff -r 4467cf9395fd -r df8722660f48 TextOLED.cpp
--- 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
+ }
+}
