Israel Hernández Orozco
/
7_3
d
main.cpp
- Committer:
- aldomarez
- Date:
- 2018-10-29
- Revision:
- 0:8709fd38c8ee
- Child:
- 1:c2ef1fd3dba8
File content as of revision 0:8709fd38c8ee:
#include "mbed.h" AnalogIn pot(A0); PwmOut motor(D6); int main() { //motor.period_us(20000); while(1) { float ancho = pot*1000.0; float anchoservo= 2000.0 - ancho; //motor.write(ancho); motor.pulsewidth_us(anchoservo); } }