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.
Dependents: TextLCD_SR4_TestProgram ServoInterfaceBoardExample1
main.cpp@1:7c375c1ac22c, 2010-10-25 (annotated)
- Committer:
- shintamainjp
- Date:
- Mon Oct 25 22:41:04 2010 +0000
- Revision:
- 1:7c375c1ac22c
First version.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| shintamainjp | 1:7c375c1ac22c | 1 | #include "mbed.h" |
| shintamainjp | 1:7c375c1ac22c | 2 | #include "TextLCD_SR4.h" |
| shintamainjp | 1:7c375c1ac22c | 3 | |
| shintamainjp | 1:7c375c1ac22c | 4 | TextLCD_SR4 lcd(p29, p30, p28, p27); |
| shintamainjp | 1:7c375c1ac22c | 5 | |
| shintamainjp | 1:7c375c1ac22c | 6 | int main() { |
| shintamainjp | 1:7c375c1ac22c | 7 | lcd.locate(0, 0); |
| shintamainjp | 1:7c375c1ac22c | 8 | lcd.printf(" TextLCD_SR4 "); |
| shintamainjp | 1:7c375c1ac22c | 9 | lcd.locate(0, 1); |
| shintamainjp | 1:7c375c1ac22c | 10 | lcd.printf(" Library test "); |
| shintamainjp | 1:7c375c1ac22c | 11 | wait(5); |
| shintamainjp | 1:7c375c1ac22c | 12 | int n = 0; |
| shintamainjp | 1:7c375c1ac22c | 13 | while (1) { |
| shintamainjp | 1:7c375c1ac22c | 14 | lcd.locate(0, 1); |
| shintamainjp | 1:7c375c1ac22c | 15 | lcd.printf("count:%10d", n++); |
| shintamainjp | 1:7c375c1ac22c | 16 | } |
| shintamainjp | 1:7c375c1ac22c | 17 | } |