Controlling DC motor using power MOSFET
Dependencies: mbed
main.cpp
- Committer:
- Nydrel
- Date:
- 2018-02-14
- Revision:
- 1:f5e6f3468ec3
- Parent:
- 0:2366bfc35e27
File content as of revision 1:f5e6f3468ec3:
#include "mbed.h" PwmOut Ctrl(p21); int main() { while(1) { float x = 0.0; x < 0; x+=0.01){ Ctrl = x; } } }