Functions test with Optrex LCD 20x4

Dependencies:   mbed

Dependents:   DatatypesLength AsciiCode IntegerFormatSpecifiers FloatFormatSpecifier

main.cpp

Committer:
Eduard
Date:
2010-11-22
Revision:
1:a6effcf6c479

File content as of revision 1:a6effcf6c479:

#include "mbed.h"
#include "OptrexLCD.h"

DigitalOut BlinkLed(LED4);

TextLCD lcd(p10, p12, p15, p16, p17, p18, TextLCD::LCD20x4 ); // rs, e, d0-d3
 
int main() {
    lcd.printf("Start Hello World!\n");
    char teller = 0;
    lcd.printf("Tweede regel? %d \n", teller);
    wait(1.5);
    
    while(1){
        wait(0.5);
        lcd.cls();       
        lcd.printf("125 Hello World! \n");
        lcd.printf("Tweede regel? %d \n", teller);
        lcd.printf("Derde regel? %d \n", (teller*3));
        lcd.printf("Vierde regel? \n");
        teller = teller++;
        BlinkLed = !BlinkLed;
    }
}