shekha & shhadi
/
demo_shekha_shhadi
demo_shekha_shhadi
main.cpp@2:572611216f56, 2016-05-02 (annotated)
- Committer:
- shekha_atrash
- Date:
- Mon May 02 14:11:11 2016 +0000
- Revision:
- 2:572611216f56
- Parent:
- 0:af6c1dbabbdb
- Child:
- 3:8de0e4033414
changed wait from 0.2 to 0.5
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shekha_atrash | 0:af6c1dbabbdb | 1 | #include "mbed.h" |
shekha_atrash | 0:af6c1dbabbdb | 2 | |
shekha_atrash | 0:af6c1dbabbdb | 3 | DigitalOut myled(LED1); |
shekha_atrash | 0:af6c1dbabbdb | 4 | |
shekha_atrash | 0:af6c1dbabbdb | 5 | int main() { |
shekha_atrash | 0:af6c1dbabbdb | 6 | while(1) { |
shekha_atrash | 0:af6c1dbabbdb | 7 | myled = 1; |
shekha_atrash | 2:572611216f56 | 8 | wait(0.5); |
shekha_atrash | 0:af6c1dbabbdb | 9 | myled = 0; |
shekha_atrash | 2:572611216f56 | 10 | wait(0.5); |
shekha_atrash | 0:af6c1dbabbdb | 11 | } |
shekha_atrash | 0:af6c1dbabbdb | 12 | } |