motor
Dependencies: mbed
main.cpp@0:6af1ffd9daaf, 2016-10-24 (annotated)
- Committer:
- tomirobo
- Date:
- Mon Oct 24 08:15:35 2016 +0000
- Revision:
- 0:6af1ffd9daaf
motor;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tomirobo | 0:6af1ffd9daaf | 1 | #include "mbed.h" |
tomirobo | 0:6af1ffd9daaf | 2 | PwmOut fet(A5); |
tomirobo | 0:6af1ffd9daaf | 3 | DigitalOut brk(A3); |
tomirobo | 0:6af1ffd9daaf | 4 | |
tomirobo | 0:6af1ffd9daaf | 5 | int main(){ |
tomirobo | 0:6af1ffd9daaf | 6 | wait(1); |
tomirobo | 0:6af1ffd9daaf | 7 | brk=1; |
tomirobo | 0:6af1ffd9daaf | 8 | wait(0.2); |
tomirobo | 0:6af1ffd9daaf | 9 | fet=1; |
tomirobo | 0:6af1ffd9daaf | 10 | wait(2); |
tomirobo | 0:6af1ffd9daaf | 11 | fet=0; |
tomirobo | 0:6af1ffd9daaf | 12 | } |
tomirobo | 0:6af1ffd9daaf | 13 |