ちょっとかえた
Fork of encoder by
encoder.h
- Committer:
- kenken0721
- Date:
- 2018-03-22
- Revision:
- 0:0d6f91c4a794
- Child:
- 1:6456080fa03b
File content as of revision 0:0d6f91c4a794:
#ifndef ENCODER_H #define ENCODER_H #include "mbed.h" class Encoder{ public : Encoder(PinName APin, PinName BPin, PinName ZPin); float read_rotate(); int read_z(); void init(); private : InterruptIn A; DigitalIn B; DigitalIn Z; int count; int zcount; void flag(); }; #endif