ちょっとかえた
Fork of encoder by
Diff: encoder.h
- Revision:
- 2:82a12d9f0bca
- Parent:
- 1:6456080fa03b
diff -r 6456080fa03b -r 82a12d9f0bca encoder.h --- a/encoder.h Mon Mar 26 20:42:49 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -#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 -