![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
FET改良版
Dependencies: mbed
TB6612.h
- Committer:
- YUPPY
- Date:
- 2019-12-15
- Revision:
- 26:05d9d3df4eba
- Parent:
- 3:5d0c4b13f4e8
File content as of revision 26:05d9d3df4eba:
/** * Motor Driver TB6612 Control Library * * -- TB6612 is a device of the rohm. * * Copyright (C) 2012 Junichi Katsu (JKSOFT) */ #ifndef MBED_TB6612_H #define MBED_TB6612_H #include "mbed.h" class TB6612 { public: TB6612(PinName pwm, PinName fwd, PinName rev); void speed(int speed); void move(int speed , int time); void operator= ( int value ) { speed(value); } protected: PwmOut _pwm; DigitalOut _fwd; DigitalOut _rev; }; #endif