by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"

Dependencies:   mbed

Committer:
robt
Date:
Fri May 24 21:33:46 2013 +0000
Revision:
0:519ae7e3077e
by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
robt 0:519ae7e3077e 1 /*Program Example 8.1, 8.2, 8.3, 8.4: TextLCD example
robt 0:519ae7e3077e 2 */
robt 0:519ae7e3077e 3
robt 0:519ae7e3077e 4
robt 0:519ae7e3077e 5 #include "LCD.h"
robt 0:519ae7e3077e 6
robt 0:519ae7e3077e 7 int main() {
robt 0:519ae7e3077e 8 LCD_init();
robt 0:519ae7e3077e 9 display_to_LCD(0x48); // ￿H￿
robt 0:519ae7e3077e 10 display_to_LCD(0x45); // ￿E￿
robt 0:519ae7e3077e 11 display_to_LCD(0x4C); // ￿L￿
robt 0:519ae7e3077e 12 display_to_LCD(0x4C); // ￿L￿
robt 0:519ae7e3077e 13 display_to_LCD(0x4F); // ￿O￿
robt 0:519ae7e3077e 14 for(char x=0x30;x<=0x39;x++){
robt 0:519ae7e3077e 15 display_to_LCD(x); // display numbers 0-9
robt 0:519ae7e3077e 16 }
robt 0:519ae7e3077e 17 }
robt 0:519ae7e3077e 18