by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"
Diff: main.cpp
- Revision:
- 0:519ae7e3077e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 24 21:33:46 2013 +0000 @@ -0,0 +1,18 @@ +/*Program Example 8.1, 8.2, 8.3, 8.4: TextLCD example + */ + + +#include "LCD.h" + +int main() { + LCD_init(); + display_to_LCD(0x48); // H + display_to_LCD(0x45); // E + display_to_LCD(0x4C); // L + display_to_LCD(0x4C); // L + display_to_LCD(0x4F); // O + for(char x=0x30;x<=0x39;x++){ + display_to_LCD(x); // display numbers 0-9 + } +} +