![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my hw2
main.cpp@0:9b39c62126ea, 2015-09-10 (annotated)
- Committer:
- gtfierro
- Date:
- Thu Sep 10 02:22:54 2015 +0000
- Revision:
- 0:9b39c62126ea
- Child:
- 1:33d22b2c88ad
init
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gtfierro | 0:9b39c62126ea | 1 | #include "mbed.h" |
gtfierro | 0:9b39c62126ea | 2 | |
gtfierro | 0:9b39c62126ea | 3 | DigitalOut myled(LED1); |
gtfierro | 0:9b39c62126ea | 4 | |
gtfierro | 0:9b39c62126ea | 5 | int main() { |
gtfierro | 0:9b39c62126ea | 6 | while(1) { |
gtfierro | 0:9b39c62126ea | 7 | myled = 1; |
gtfierro | 0:9b39c62126ea | 8 | wait(0.2); |
gtfierro | 0:9b39c62126ea | 9 | myled = 0; |
gtfierro | 0:9b39c62126ea | 10 | wait(0.2); |
gtfierro | 0:9b39c62126ea | 11 | } |
gtfierro | 0:9b39c62126ea | 12 | } |