![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
asd
main.cpp@0:a8f0f24af453, 2015-07-23 (annotated)
- Committer:
- harseed951
- Date:
- Thu Jul 23 09:58:54 2015 +0000
- Revision:
- 0:a8f0f24af453
asd;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
harseed951 | 0:a8f0f24af453 | 1 | #include "mbed.h" |
harseed951 | 0:a8f0f24af453 | 2 | |
harseed951 | 0:a8f0f24af453 | 3 | DigitalOut a(p5),b(p6),c(p7),d(p8); |
harseed951 | 0:a8f0f24af453 | 4 | |
harseed951 | 0:a8f0f24af453 | 5 | int main() { |
harseed951 | 0:a8f0f24af453 | 6 | while(1) { |
harseed951 | 0:a8f0f24af453 | 7 | |
harseed951 | 0:a8f0f24af453 | 8 | a=1;b=0;c=0;d=1; |
harseed951 | 0:a8f0f24af453 | 9 | wait(0.1); |
harseed951 | 0:a8f0f24af453 | 10 | a=1;b=1;c=0;d=0; |
harseed951 | 0:a8f0f24af453 | 11 | wait(0.1); |
harseed951 | 0:a8f0f24af453 | 12 | a=0;b=1;c=1;d=0; |
harseed951 | 0:a8f0f24af453 | 13 | wait(0.1); |
harseed951 | 0:a8f0f24af453 | 14 | a=0;b=0;c=1;d=1; |
harseed951 | 0:a8f0f24af453 | 15 | wait(0.1); |
harseed951 | 0:a8f0f24af453 | 16 | |
harseed951 | 0:a8f0f24af453 | 17 | } |
harseed951 | 0:a8f0f24af453 | 18 | } |