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.
Dependencies: 4DGL-uLCD-SE mbed
Fork of uVGAII_demo by
Diff: main.cpp
- Revision:
- 4:25a266a74a4c
- Parent:
- 3:454d1f4c8fd7
- Child:
- 5:a1ef40ff0f78
--- a/main.cpp Sun Nov 17 04:37:03 2013 +0000
+++ b/main.cpp Mon Nov 18 03:06:14 2013 +0000
@@ -27,6 +27,7 @@
int main()
{
+ int pixelcolors[400];
// basic printf demo = 16 by 18 characters on screen
uLCD.printf("\nHello uLCD World\n"); //Default Green on black text
uLCD.printf("\n Starting Demo...");
@@ -70,6 +71,14 @@
uLCD.printf("TxtLine %2D Page %D\n",i%16,i/16 );
i++; //16 lines with 18 charaters per line
}
+//draw an image pixel by BLIT (Block Image Transfer)
+ uLCD.background_color(BLACK);
+ uLCD.cls();
+ for(int i=0; i<400; i++) {
+ pixelcolors[i] = RED;
+ }
+ uLCD.BLIT(50, 50, 20, 20, &pixelcolors[0]);
+ wait(5);
//draw an image pixel by pixel
uLCD.background_color(BLACK);
uLCD.cls();

4D Systems 128 by 128 Smart Color LCD uLCD-144-G2