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
Diff: main.cpp
- Revision:
- 0:abe7b0c3f382
- Child:
- 1:9f093ed9a93b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 08 03:41:35 2018 +0000 @@ -0,0 +1,21 @@ +// uLCD-144-G2 basic text demo program for uLCD-4GL LCD driver library +// +#include "mbed.h" +#include "uLCD_4DGL.h" + +uLCD_4DGL uLCD(p9,p10,p11); // serial tx, serial rx, reset pin; + +int main() +{ + // 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..."); + uLCD.text_width(4); //4X size text + uLCD.text_height(4); + uLCD.color(RED); + for (int i=10; i>=0; --i) { + uLCD.locate(1,2); + uLCD.printf("%2D",i); + wait(.5); + } +} \ No newline at end of file