24 lines
385 B
C
24 lines
385 B
C
|
/*
|
||
|
* File name: encoder.h
|
||
|
* Author: JRNitre
|
||
|
* Version: MASVersion.0.0.0b
|
||
|
* Date: 2024-05-10
|
||
|
*
|
||
|
* Description:
|
||
|
* 旋转编码器驱动程序头文件.
|
||
|
*/
|
||
|
|
||
|
#ifndef ENCODER_H
|
||
|
#define ENCODER_H
|
||
|
|
||
|
#include <Arduino.h>
|
||
|
#include <ESP32Encoder.h>
|
||
|
|
||
|
#define ENCODER_DT 15
|
||
|
#define ENCODER_CLK 2
|
||
|
|
||
|
void encoder_init();
|
||
|
long encoder_getCount();
|
||
|
uint8_t encoder_getKeyNum();
|
||
|
|
||
|
#endif
|