jeonghoon Lee
/
LAB2-Part7-MosfetNMotor
MosfetMotr
main.cpp
- Committer:
- jlee3588
- Date:
- 2020-03-03
- Revision:
- 0:2a8417ed9ec7
File content as of revision 0:2a8417ed9ec7:
#include "mbed.h" PwmOut control(p21); float p = 0; int main() { control = 0.0f; while(1) { int i; p=0; for(i=0; i<10; i++){ p += 0.1f; control = p; wait(2); } } }