AF_TB6612FNG is a library of TB6612FNG.
Example
include the mbed library with this snippet
#include "mbed.h" #include "AF_TB6612FNG.h" AF_TB6612FNG tb6612fng(p21, p20, p19, p22, p18, p17, p12); int main() { float speed = 0.6; tb6612fng.forward(speed); }
Diff: Moter.h
- Revision:
- 1:47e5a7b22c0f
- Parent:
- 0:98dcc458e267
--- a/Moter.h Mon Jun 04 00:23:18 2018 +0000 +++ b/Moter.h Mon Jun 04 00:36:29 2018 +0000 @@ -20,7 +20,6 @@ PwmOut _pwm; DigitalOut _in1; DigitalOut _in2; - int stat; }; #endif