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.
Fork of Nucleo-mbed-os-example-blinky by
main.cpp@2:07a218c4cb20, 2016-08-17 (annotated)
- Committer:
- Helmut64
- Date:
- Wed Aug 17 18:10:55 2016 +0000
- Revision:
- 2:07a218c4cb20
- Parent:
- 1:860c7462805e
- Child:
- 3:a6caeb32839c
Erste Tests mit mbed
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Helmut64 | 0:681c27ac21c0 | 1 | #include "mbed.h" |
| Helmut64 | 0:681c27ac21c0 | 2 | |
| Helmut64 | 0:681c27ac21c0 | 3 | |
| Helmut64 | 2:07a218c4cb20 | 4 | PwmOut led(LED1); |
| Helmut64 | 0:681c27ac21c0 | 5 | |
| Helmut64 | 0:681c27ac21c0 | 6 | int main() |
| Helmut64 | 2:07a218c4cb20 | 7 | { |
| Helmut64 | 0:681c27ac21c0 | 8 | while (true) { |
| Helmut64 | 2:07a218c4cb20 | 9 | led = led + 0.05f; |
| Helmut64 | 2:07a218c4cb20 | 10 | wait(0.1); |
| Helmut64 | 2:07a218c4cb20 | 11 | if (led >= 1.0f) |
| Helmut64 | 2:07a218c4cb20 | 12 | led = 0; |
| Helmut64 | 0:681c27ac21c0 | 13 | } |
| Helmut64 | 0:681c27ac21c0 | 14 | } |
