Dependents: Serialservo_01 nhk_2018_undercarry_test08 nhk_2018_undercarry_test09 nhk_2018_undercarry_test10 ... more
Serialservo.h
- Committer:
- kenken0721
- Date:
- 2018-03-18
- Revision:
- 0:2d468b5749f9
- Child:
- 1:4caf52a715c2
File content as of revision 0:2d468b5749f9:
#ifndef SERIALSERVO_H #define SERIALSERVO_H #include "mbed.h" class Serialservo{ public : Serialservo(PinName TX, PinName RX); void init(char id); void move(int value); private : Serial ser; unsigned char servoval; long map(long x, long in_min, long in_max, long out_min, long out_max); }; #endif