![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
xxx
main.cpp@1:bb1ab65c423b, 2018-02-20 (annotated)
- Committer:
- sajjadathar
- Date:
- Tue Feb 20 06:01:27 2018 +0000
- Revision:
- 1:bb1ab65c423b
- Parent:
- 0:3b758e1149dd
first_publish
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sajjadathar | 0:3b758e1149dd | 1 | #include "mbed.h" |
sajjadathar | 0:3b758e1149dd | 2 | |
sajjadathar | 1:bb1ab65c423b | 3 | DigitalOut myled1(LED1); |
sajjadathar | 1:bb1ab65c423b | 4 | DigitalOut myled2(LED2); |
sajjadathar | 0:3b758e1149dd | 5 | |
sajjadathar | 0:3b758e1149dd | 6 | int main() { |
sajjadathar | 0:3b758e1149dd | 7 | while(1) { |
sajjadathar | 1:bb1ab65c423b | 8 | myled1 = 1; |
sajjadathar | 1:bb1ab65c423b | 9 | myled2 = 2; |
sajjadathar | 0:3b758e1149dd | 10 | wait(0.2); |
sajjadathar | 1:bb1ab65c423b | 11 | myled1 = 0; |
sajjadathar | 1:bb1ab65c423b | 12 | myled2 = 0; |
sajjadathar | 0:3b758e1149dd | 13 | wait(0.2); |
sajjadathar | 0:3b758e1149dd | 14 | } |
sajjadathar | 0:3b758e1149dd | 15 | } |