feat: added encoder status (increased / reduced)
This commit is contained in:
1 parent
85b5a8998d
commit
ae27426dd0
5 files changed
+12
-6
No files matched your search
@@ -18,6 +18,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "math.h"
|
||||
#include "string.h"
|
||||
#include "esp_log.h"
|
||||
#include "driver/gpio.h"
|
||||
#include "driver/pulse_cnt.h"
|
||||
@@ -119,6 +121,7 @@ extern "C"
|
||||
{
|
||||
float encoder_position; /*!< Encoder current position */
|
||||
uint8_t encoder_number; /*!< Encoder unique number */
|
||||
bool encoder_status; /*!< Encoder status (true when position increased, false when position reduced) */
|
||||
} zh_encoder_event_on_isr_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user