Helmut Tschemernjak
/
Nucleo-mbed-os-example-blinky
Test
Fork of Nucleo-mbed-os-example-blinky by
main.cpp@3:a6caeb32839c, 2016-08-21 (annotated)
- Committer:
- Helmut64
- Date:
- Sun Aug 21 19:25:29 2016 +0000
- Revision:
- 3:a6caeb32839c
- Parent:
- 2:07a218c4cb20
- Child:
- 4:634ee710cadb
Backup
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 | 3:a6caeb32839c | 3 | #include "FATFileSystem.h" |
Helmut64 | 3:a6caeb32839c | 4 | |
Helmut64 | 0:681c27ac21c0 | 5 | |
Helmut64 | 2:07a218c4cb20 | 6 | PwmOut led(LED1); |
Helmut64 | 0:681c27ac21c0 | 7 | |
Helmut64 | 0:681c27ac21c0 | 8 | int main() |
Helmut64 | 2:07a218c4cb20 | 9 | { |
Helmut64 | 3:a6caeb32839c | 10 | FATFileSystem *f; |
Helmut64 | 3:a6caeb32839c | 11 | |
Helmut64 | 0:681c27ac21c0 | 12 | while (true) { |
Helmut64 | 2:07a218c4cb20 | 13 | led = led + 0.05f; |
Helmut64 | 2:07a218c4cb20 | 14 | wait(0.1); |
Helmut64 | 2:07a218c4cb20 | 15 | if (led >= 1.0f) |
Helmut64 | 2:07a218c4cb20 | 16 | led = 0; |
Helmut64 | 0:681c27ac21c0 | 17 | } |
Helmut64 | 0:681c27ac21c0 | 18 | } |