MARIO DERRANT
/
SERVOCONTROL
RC SERVO FOR KL46Z
main.cpp
- Committer:
- mderrant
- Date:
- 2014-07-22
- Revision:
- 2:3604d4f17475
- Parent:
- 1:f718f736947a
File content as of revision 2:3604d4f17475:
#include "mbed.h" #include "Servo.h" Servo s1(PTA13); AnalogIn p1(PTB0); int main() { while(1) { /* s1.write(0); wait(1.0); s1.write(1); wait(1.0); */ s1=p1; printf(" %f \r",p1.read()); } }