A library that makes use of the TB6612FNG and tested on the Sparkfun FTB6612NG carrier board.

Dependents:   mbed-os-example-FinalReal mbed-os-example-FinalReal_copy mbed-os-example-FinalReal

Revision:
1:7f18197d1210
Parent:
0:34d1ce434420
--- a/TB6612FNG.h	Mon May 30 14:25:18 2011 +0000
+++ b/TB6612FNG.h	Thu Jun 09 17:43:46 2011 +0000
@@ -11,35 +11,34 @@
 /** 
  *
  */
-
 class TB6612FNG {
     private:
         PwmOut motorPWM;
         DigitalOut In1;
         DigitalOut In2; 
     public:
-	
-		/** Creates a TB6612FNG object connected to the mbed.
-		 * Note that for a full TB6612FNG 2 objects will need to be declaired and a DigitalOut to control the standby pin.
-		 * @param pPWM
-		 * @param pIn1
-		 * @param pIn2
-		 */
+    
+        /** Creates a TB6612FNG object connected to the mbed.
+         * Note that for a full TB6612FNG 2 objects will need to be declaired and a DigitalOut to control the standby pin.
+         * @param pPWM
+         * @param pIn1
+         * @param pIn2
+         */
         TB6612FNG(PinName pPWM, PinName pIn1, PinName pIn2);       
-		
-		/** Setting the speed
-		 * @param newSpeed The new speed in the range -1.0 to +1.0
-		 */
+        
+        /** Setting the speed
+         * @param newSpeed The new speed in the range -1.0 to +1.0
+         */
         void setSpeed(float newSpeed);        
         
-		/** Reading the speed
-		 * @returns The speed in the range -1.0 to +1.0
-		 */
-		float getSpeed(void);
+        /** Reading the speed
+         * @returns The speed in the range -1.0 to +1.0
+         */
+        float getSpeed(void);
         
-		/** Shorthand for the setSpeed and getSpeed functions */
-		void operator= (float param);        
-		operator float();        
+        /** Shorthand for the setSpeed and getSpeed functions */
+        void operator= (float param);        
+        operator float();        
 };
 
 #endif
\ No newline at end of file