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: NokiaLCD.cpp
- Revision:
- 4:f746ea56e891
- Parent:
- 2:7cf441bf092d
--- a/NokiaLCD.cpp Thu Feb 10 14:29:29 2011 +0000
+++ b/NokiaLCD.cpp Thu Feb 10 14:44:49 2011 +0000
@@ -339,7 +339,7 @@
void NokiaLCD::blit12(int x, int y, int width, int height, const unsigned char* colour12) {
_cs = 0;
- _window(x, y, width, height);
+ _window(x, y, width, height+2); // The reason is not understood.
switch (_type) {
case LCD6100:
@@ -349,7 +349,7 @@
}
break;
case LCD6610:
- for (int i=0; i<width*height*3/2; i++) {
+ for (int i=0; i<width*height/2*3; i++) {
data(colour12[i]);
}
break;