Jenny Plunkett
/
jenny-test
This is a test
main.cpp@0:2e6c56c29340, 2018-08-20 (annotated)
- Committer:
- jplunkett
- Date:
- Mon Aug 20 17:35:58 2018 +0000
- Revision:
- 0:2e6c56c29340
- Child:
- 1:ac617c2d1c1c
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jplunkett | 0:2e6c56c29340 | 1 | #include "mbed.h" |
jplunkett | 0:2e6c56c29340 | 2 | |
jplunkett | 0:2e6c56c29340 | 3 | DigitalOut led1(LED1); |
jplunkett | 0:2e6c56c29340 | 4 | |
jplunkett | 0:2e6c56c29340 | 5 | // main() runs in its own thread in the OS |
jplunkett | 0:2e6c56c29340 | 6 | int main() { |
jplunkett | 0:2e6c56c29340 | 7 | while (true) { |
jplunkett | 0:2e6c56c29340 | 8 | led1 = !led1; |
jplunkett | 0:2e6c56c29340 | 9 | wait(0.5); |
jplunkett | 0:2e6c56c29340 | 10 | } |
jplunkett | 0:2e6c56c29340 | 11 | } |