ちょっとかえた
Fork of encoder by
encoder.h
- Committer:
- frute8
- Date:
- 2018-03-26
- Revision:
- 1:6456080fa03b
- Parent:
- 0:0d6f91c4a794
File content as of revision 1:6456080fa03b:
#ifndef ENCODER_H #define ENCODER_H #include "mbed.h" class Encoder{ public : Encoder(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