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:9e0faf75f451, 2017-10-11 (annotated)
- Committer:
- aboutry
- Date:
- Wed Oct 11 13:43:43 2017 +0000
- Revision:
- 0:9e0faf75f451
Louai
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| aboutry | 0:9e0faf75f451 | 1 | #include "mbed.h" |
| aboutry | 0:9e0faf75f451 | 2 | #include "TextLCD.h" |
| aboutry | 0:9e0faf75f451 | 3 | DigitalOut myled(LED1); |
| aboutry | 0:9e0faf75f451 | 4 | TextLCD lcd(D8,D9,D4,D5,D6,D7); |
| aboutry | 0:9e0faf75f451 | 5 | int main() |
| aboutry | 0:9e0faf75f451 | 6 | { |
| aboutry | 0:9e0faf75f451 | 7 | lcd.printf("NUCLEO F103RB"); |
| aboutry | 0:9e0faf75f451 | 8 | float i=0.0; |
| aboutry | 0:9e0faf75f451 | 9 | while(1) { |
| aboutry | 0:9e0faf75f451 | 10 | lcd.locate(0,1); |
| aboutry | 0:9e0faf75f451 | 11 | lcd.printf("%f",i); |
| aboutry | 0:9e0faf75f451 | 12 | i=i+0.5; |
| aboutry | 0:9e0faf75f451 | 13 | wait_ms(200) ; |
| aboutry | 0:9e0faf75f451 | 14 | } |
| aboutry | 0:9e0faf75f451 | 15 | } |