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);
}

Files at this revision

API Documentation at this revision

Comitter:
tichise
Date:
Mon Jun 04 00:36:29 2018 +0000
Parent:
0:98dcc458e267
Child:
2:d6cb78f523b0
Commit message:
refactoring

Changed in this revision

Moter.h Show annotated file Show diff for this revision Revisions of this file
--- 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