![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
切断機構
Dependencies: mbed
main.cpp@1:97b9f92541f4, 2018-11-09 (annotated)
- Committer:
- sayan2
- Date:
- Fri Nov 09 14:57:10 2018 +0000
- Revision:
- 1:97b9f92541f4
- Parent:
- 0:2460986512d0
11/9 23:56 FET ???????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sayan2 | 0:2460986512d0 | 1 | #include "mbed.h" |
sayan2 | 0:2460986512d0 | 2 | |
sayan2 | 0:2460986512d0 | 3 | DigitalOut FET(p21); |
sayan2 | 0:2460986512d0 | 4 | |
sayan2 | 0:2460986512d0 | 5 | int main() { |
sayan2 | 0:2460986512d0 | 6 | |
sayan2 | 0:2460986512d0 | 7 | FET = 0; |
sayan2 | 1:97b9f92541f4 | 8 | wait(600); |
sayan2 | 0:2460986512d0 | 9 | FET = 1; |
sayan2 | 1:97b9f92541f4 | 10 | wait(5); |
sayan2 | 1:97b9f92541f4 | 11 | FET = 0; |
sayan2 | 1:97b9f92541f4 | 12 | wait(15); |
sayan2 | 1:97b9f92541f4 | 13 | FET = 1; |
sayan2 | 1:97b9f92541f4 | 14 | wait(5); |
sayan2 | 0:2460986512d0 | 15 | FET = 0; |
sayan2 | 0:2460986512d0 | 16 | } |