amir ream
/
HelloWorld
amir hamelch new hello world
Fork of HelloWorld by
main.cpp@2:394532d12a9a, 2016-04-11 (annotated)
- Committer:
- amir_hamelech
- Date:
- Mon Apr 11 06:37:57 2016 +0000
- Revision:
- 2:394532d12a9a
- Parent:
- 0:fb6bbc10ffa0
new world
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:fb6bbc10ffa0 | 1 | #include "mbed.h" |
simon | 0:fb6bbc10ffa0 | 2 | |
simon | 0:fb6bbc10ffa0 | 3 | DigitalOut myled(LED1); |
simon | 0:fb6bbc10ffa0 | 4 | |
simon | 0:fb6bbc10ffa0 | 5 | int main() { |
simon | 0:fb6bbc10ffa0 | 6 | while(1) { |
simon | 0:fb6bbc10ffa0 | 7 | myled = 1; |
amir_hamelech | 2:394532d12a9a | 8 | wait(2.2); |
simon | 0:fb6bbc10ffa0 | 9 | myled = 0; |
amir_hamelech | 2:394532d12a9a | 10 | wait(2.2); |
simon | 0:fb6bbc10ffa0 | 11 | } |
simon | 0:fb6bbc10ffa0 | 12 | } |