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.
Diff: N5110.cpp
- Revision:
- 3:f90dd1042d17
- Parent:
- 2:e93021cfb0a9
- Child:
- 5:6ea180eef702
diff -r e93021cfb0a9 -r f90dd1042d17 N5110.cpp
--- a/N5110.cpp Sun Jan 26 20:06:58 2014 +0000
+++ b/N5110.cpp Sun Jan 26 20:09:15 2014 +0000
@@ -136,8 +136,12 @@
x=83;
if (y > 5)
y=5;
+ if (x < 0)
+ x=0;
+ if (y < 0)
+ y=0;
- sendCommand(0x80 | x);
+ sendCommand(0x80 | x); // send addresses to display with relevant mask
sendCommand(0x40 | y);
}