Committed for sharing.

Dependencies:   mbed SelfBalancingRobot_BerkYasarYavuz_AdilBerkayTemiz Motor ledControl2 HC_SR04_Ultrasonic_Library

Revision:
11:0a2944e7be23
Parent:
10:8050817ae610
diff -r 8050817ae610 -r 0a2944e7be23 HALLFX_ENCODER.h
--- a/HALLFX_ENCODER.h	Thu Aug 25 22:55:36 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-#ifndef HALLFX_ENCODER_H
-#define HALLFX_ENCODER_H
- 
-/*
-    Basic Encoder Library for Sparkfun's Wheel Encoder Kit
-    Part# ROB-12629.
-*/
- 
-#include "mbed.h"
- 
-class HALLFX_ENCODER{
-    public:
-        /*
-            Constructor for Encoder objects
-            @param enc_in    The mBed pin connected to encoder output
-        */
-        HALLFX_ENCODER(PinName enc_in);
-        /*
-            read() returns total number of counts of the encoder.
-            Count can be +/- and indicates the overall direction,
-            (+): CW (-): CCW
-            @return     The toltal number of counts of the encoder.
-        */
-        long read();
-        /*
-            reset() clears the counter to 0. 
-        */
-        void reset();
-    private:
-        long count;         // Total number of counts since start.
-        InterruptIn _enc_in;// Encoder Input/Interrupt Pin
-        /*
-            Increments/Decrements count on interrrupt.
-        */
-        void callback();    // Interrupt callback function
-};
- 
-#endif
\ No newline at end of file