ちょっとかえた
Fork of encoder by
encoder2.h
- Committer:
- frute8
- Date:
- 2018-03-27
- Revision:
- 2:82a12d9f0bca
File content as of revision 2:82a12d9f0bca:
#ifndef ENCODER_H2 #define ENCODER_H2 #include "mbed.h" class Encoder2{ public : Encoder2(PinName APin, PinName BPin, PinName ZPin); int read_rotate(); int read_z(); void init(); private : InterruptIn A; DigitalIn B; DigitalIn Z; int count; int zcount; void flag(); }; #endif