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.
Dependencies: mbed
main.cpp@8:5a2df0569c67, 2019-02-12 (annotated)
- Committer:
- Danyal
- Date:
- Tue Feb 12 12:30:41 2019 +0000
- Revision:
- 8:5a2df0569c67
- Parent:
- 7:dd77d598e6cb
Aufgabe1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 0:005629fe3609 | 1 | #include "mbed.h" |
screamer | 0:005629fe3609 | 2 | |
Danyal | 8:5a2df0569c67 | 3 | /** |
Danyal | 8:5a2df0569c67 | 4 | * Execution Time |
JuergenSchuele | 7:dd77d598e6cb | 5 | */ |
JuergenSchuele | 7:dd77d598e6cb | 6 | |
JuergenSchuele | 7:dd77d598e6cb | 7 | Serial pc(SERIAL_TX, SERIAL_RX); |
Danyal | 8:5a2df0569c67 | 8 | |
Danyal | 8:5a2df0569c67 | 9 | DigitalOut digO(D8); |
screamer | 0:005629fe3609 | 10 | |
JuergenSchuele | 7:dd77d598e6cb | 11 | int main() |
Danyal | 8:5a2df0569c67 | 12 | { |
Danyal | 8:5a2df0569c67 | 13 | // Endless loop |
Danyal | 8:5a2df0569c67 | 14 | while(1) { |
JuergenSchuele | 7:dd77d598e6cb | 15 | |
Danyal | 8:5a2df0569c67 | 16 | //volatile double a = 12345., b = 67., c =0.; |
Danyal | 8:5a2df0569c67 | 17 | //volatile int16_t a = 12345, b = 67, c =0; |
Danyal | 8:5a2df0569c67 | 18 | //volatile int32_t a = 12345, b = 67, c =0; |
Danyal | 8:5a2df0569c67 | 19 | volatile float a = 12345., b = 67., c =0.; |
Danyal | 8:5a2df0569c67 | 20 | //int32_t erg = 0; |
Danyal | 8:5a2df0569c67 | 21 | |
Danyal | 8:5a2df0569c67 | 22 | digO.write(1); |
Danyal | 8:5a2df0569c67 | 23 | //c = a +b; |
Danyal | 8:5a2df0569c67 | 24 | pc.printf("Hello World %f",a); |
Danyal | 8:5a2df0569c67 | 25 | digO.write(0); |
screamer | 0:005629fe3609 | 26 | } |
screamer | 0:005629fe3609 | 27 | } |