ESP32のパルス計数機能で左右のエンコーダ信号を数える。 [詳解]
#include <stdint.h>
#include <Arduino.h>
#include "driver/pulse_cnt.h"
[ソースコード]
ESP32のパルス計数機能で左右のエンコーダ信号を数える。
Encoder.hpp に定義があります。