Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TrapezoidControl QEI Pulse LM61CIZ
Input/Encoder/Encoder.h
- Committer:
- M_souta
- Date:
- 2019-09-17
- Revision:
- 22:7d93f79a3686
- Parent:
- 16:3f2c2d89372b
File content as of revision 22:7d93f79a3686:
#ifndef ENCODER_H_
#define ENCODER_H_
#include "QEI.h"
extern QEI encoder[];
namespace ENCODER {
    #define ECD_A_0    PB_1
    #define ECD_A_1    PB_12
    #define ECD_A_2    PC_4
    #define ECD_A_3    PB_14 
    
    #define ECD_B_0    PB_2
    #define ECD_B_1    PA_11
    #define ECD_B_2    PB_13
    #define ECD_B_3    PB_15
    
    class ECD {
        public:
        static void Initialize();
    };
}
#endif