Using the “Pulse Count Controller” (PCNT) CMakeLists.txt REQUIRES Ensure the following is added to the REQUIRES section of your CMakeLists.txt file in the \main folder: Configuring Reading value More useful version
Category: Pulse Count Controller (PCNT)
Quadrature encoder input
See Espressif example here