BBBBBBBB
Dependents: measure_1_BBB measure_1_CCC measure_1_DDD
TB6612FNG.h
00001 #ifndef __TB6612FNG_H 00002 #define __TB6612FNG_H 00003 00004 #include "mbed.h" 00005 class TB6612FNG 00006 { 00007 public: 00008 TB6612FNG(PinName IN1, PinName IN2, PinName STBY, PinName PWM); 00009 void STBY(bool f); 00010 void SetW(float W); 00011 00012 void Forward(); 00013 void Stop(); 00014 /* 00015 void Reverse(); 00016 void Brake(); 00017 */ 00018 private: 00019 DigitalOut _IN1; 00020 DigitalOut _IN2; 00021 DigitalOut _STBY; 00022 PwmOut _PWM; 00023 }; 00024 #endif
Generated on Wed Jul 20 2022 16:56:27 by
1.7.2