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