Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@0:ed9c40a5ca0d, 2017-09-28 (annotated)
- Committer:
- SMART_CLEO
- Date:
- Thu Sep 28 03:29:14 2017 +0000
- Revision:
- 0:ed9c40a5ca0d
SMART_CLEO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
SMART_CLEO | 0:ed9c40a5ca0d | 1 | #include "mbed.h" |
SMART_CLEO | 0:ed9c40a5ca0d | 2 | #include "TextLCD.h" |
SMART_CLEO | 0:ed9c40a5ca0d | 3 | |
SMART_CLEO | 0:ed9c40a5ca0d | 4 | // rs, rw, e, d0-d3 |
SMART_CLEO | 0:ed9c40a5ca0d | 5 | TextLCD lcd(PB_12, PB_13, PB_14, PB_15, PA_9, PA_10, PA_11); |
SMART_CLEO | 0:ed9c40a5ca0d | 6 | |
SMART_CLEO | 0:ed9c40a5ca0d | 7 | int main() { |
SMART_CLEO | 0:ed9c40a5ca0d | 8 | lcd.locate(0, 0); |
SMART_CLEO | 0:ed9c40a5ca0d | 9 | lcd.printf("Hello!!"); |
SMART_CLEO | 0:ed9c40a5ca0d | 10 | lcd.locate(5, 1); |
SMART_CLEO | 0:ed9c40a5ca0d | 11 | lcd.printf("World!!"); |
SMART_CLEO | 0:ed9c40a5ca0d | 12 | while(1); |
SMART_CLEO | 0:ed9c40a5ca0d | 13 | } |