Comunicación serial nucleo labview (básica)

Dependencies:   Servo mbed

main.cpp

Committer:
dreamremnant12
Date:
2017-06-07
Revision:
0:bf2334095c93

File content as of revision 0:bf2334095c93:

#include "mbed.h"
#include "Servo.h"

Servo myservo(PA_8);
Serial pc(USBTX, USBRX);

int main() {
    while(1) {
        float ser1;
        scanf("%f", &ser1);
        myservo.calibrate(0.0009, 45.0);
        myservo = ser1;
    }
}