RC SERVO FOR KL46Z modificado con slider
Dependencies: SLCD Servo mbed tsi_sensor
Fork of SERVOCONTROL by
main.cpp
- Committer:
- mderrant
- Date:
- 2014-07-22
- Revision:
- 2:3604d4f17475
- Parent:
- 1:f718f736947a
- Child:
- 3:5b33be4b1a5a
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()); } }