Files
xc8-picamp/include/rotary_encoder.h
2023-11-23 23:04:00 +01:00

10 lines
262 B
C

#ifndef ROTARY_ENCODER_H
#define ROTARY_ENCODER_H
typedef enum { ROTATE_LEFT = 1, ROTATE_RIGHT = 2 } RotaryEncoderStates;
// volatile unsigned char A, volatile unsigned char B
void parse_rotary(char pinA, char pinB, char *counter, char max, char min);
#endif