田中くんのモタドラを制御する石本さんのやつ
Diff: T_motor.h
- Revision:
- 1:5bd161b83ce0
- Parent:
- 0:e10d08530490
- Child:
- 8:2759e619969a
--- a/T_motor.h Sun Aug 13 02:08:40 2017 +0000 +++ b/T_motor.h Sun Aug 13 03:48:22 2017 +0000 @@ -12,6 +12,7 @@ T_motor(PinName sda,PinName scl,int addr); T_motor(I2C& i2c_,int addr); T_motor& operator=(float fval); + void control(float fval); bool run(char mode,char speed); bool stop(); bool free();