by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"
main.cpp@0:6da9a49508df, 2013-05-24 (annotated)
- Committer:
- robt
- Date:
- Fri May 24 21:34:10 2013 +0000
- Revision:
- 0:6da9a49508df
by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
robt | 0:6da9a49508df | 1 | /*Program Example 8.5: TextLCD library example |
robt | 0:6da9a49508df | 2 | */ |
robt | 0:6da9a49508df | 3 | |
robt | 0:6da9a49508df | 4 | #include "mbed.h" |
robt | 0:6da9a49508df | 5 | #include "TextLCD.h" |
robt | 0:6da9a49508df | 6 | TextLCD lcd(p19, p20, p21, p22, p23, p24); // rs, e, d0, d1, d2, d3 |
robt | 0:6da9a49508df | 7 | |
robt | 0:6da9a49508df | 8 | |
robt | 0:6da9a49508df | 9 | int main() { |
robt | 0:6da9a49508df | 10 | // lcd.locate(3,0); |
robt | 0:6da9a49508df | 11 | lcd.printf("Hello World!"); |
robt | 0:6da9a49508df | 12 | } |
robt | 0:6da9a49508df | 13 | |
robt | 0:6da9a49508df | 14 |