![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Lab1Part1
main.cpp@0:1f7ab31c87df, 2014-12-02 (annotated)
- Committer:
- kevinmark13
- Date:
- Tue Dec 02 07:48:40 2014 +0000
- Revision:
- 0:1f7ab31c87df
Lab1Part1;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kevinmark13 | 0:1f7ab31c87df | 1 | #include "mbed.h" |
kevinmark13 | 0:1f7ab31c87df | 2 | |
kevinmark13 | 0:1f7ab31c87df | 3 | DigitalOut myled(LED1); |
kevinmark13 | 0:1f7ab31c87df | 4 | |
kevinmark13 | 0:1f7ab31c87df | 5 | int main() { |
kevinmark13 | 0:1f7ab31c87df | 6 | while(1) { |
kevinmark13 | 0:1f7ab31c87df | 7 | myled = 1; |
kevinmark13 | 0:1f7ab31c87df | 8 | wait(0.2); |
kevinmark13 | 0:1f7ab31c87df | 9 | myled = 0; |
kevinmark13 | 0:1f7ab31c87df | 10 | wait(0.2); |
kevinmark13 | 0:1f7ab31c87df | 11 | } |
kevinmark13 | 0:1f7ab31c87df | 12 | } |