4180 LabTeam - Spring '18 / Mbed 2 deprecated Lab2_Part3

Dependencies:   4DGL-uLCD-SE mbed

main.cpp

Committer:
bjs9
Date:
2018-02-08
Revision:
0:abe7b0c3f382
Child:
1:9f093ed9a93b

File content as of revision 0:abe7b0c3f382:

// 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);
    }
}