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.
Revision 1:fee9be359627, committed 2016-12-19
- Comitter:
- Anaesthetix
- Date:
- Mon Dec 19 23:24:18 2016 +0000
- Parent:
- 0:160d9ed96c23
- Commit message:
- Updated sample program with drawing / buffering
Changed in this revision
| SSH1106.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SSH1106.lib Mon Dec 19 15:05:35 2016 +0000 +++ b/SSH1106.lib Mon Dec 19 23:24:18 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/Anaesthetix/code/SSH1106/#3cd0a11a2f91 +https://developer.mbed.org/users/Anaesthetix/code/SSH1106/#ac9efaadd666
--- a/main.cpp Mon Dec 19 15:05:35 2016 +0000
+++ b/main.cpp Mon Dec 19 23:24:18 2016 +0000
@@ -21,6 +21,7 @@
int n = 6;
n = sprintf(str, "01234ABCdefghijk");
while(1) {
+
ssh1106.drawBitmap(test);
wait(1);
ssh1106.drawBitmap(einstein);
@@ -32,6 +33,14 @@
ssh1106.drawBitmap(copter);
wait(1);
ssh1106.clear();
+ ssh1106.clearBuffer();
+ ssh1106.drawbufferLineHor(10, 7, 4, 108);
+ ssh1106.drawbufferLineVert(62, 7, 55, 4);
+ ssh1106.update();
+ wait(1);
+ //ssh1106.drawLineVert(62, 10, 40, 4);
+ //wait(5);
+ ssh1106.clear();
ssh1106.writeText(0,0, font_6x6, str, n);
ssh1106.writeText(0,1, font_7x7, str, n);
ssh1106.writeText(0,2, bold_font, str, n);