RC SERVO FOR KL46Z modificado con slider

Dependencies:   SLCD Servo mbed tsi_sensor

Fork of SERVOCONTROL by MARIO DERRANT

main.cpp

Committer:
mderrant
Date:
2014-07-18
Revision:
1:f718f736947a
Parent:
0:f0854ea82f82
Child:
2:3604d4f17475

File content as of revision 1:f718f736947a:

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

Servo s1(PTA13);
Servo s2(PTD2);

AnalogIn p1(PTD7);
AnalogIn p2(PTA5);

int main() {
    while(1) {
        s1=p1;
        s2=p2;        
        wait(0.1);
    }
}