![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
切断機構
Dependencies: mbed
main.cpp@0:2460986512d0, 2018-10-12 (annotated)
- Committer:
- sayan2
- Date:
- Fri Oct 12 08:59:53 2018 +0000
- Revision:
- 0:2460986512d0
- Child:
- 1:97b9f92541f4
????
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 | 0:2460986512d0 | 8 | wait(60); |
sayan2 | 0:2460986512d0 | 9 | FET = 1; |
sayan2 | 0:2460986512d0 | 10 | wait(30); |
sayan2 | 0:2460986512d0 | 11 | FET = 0; |
sayan2 | 0:2460986512d0 | 12 | } |