This little task I first forgot to do, and then when I remembered, I had trouble locating the file to be edited. Here’s the task:
Developer Info
Library Patch
There is a bug in the M5Dial Encoder library . The patch is pretty simple. It could be automated with some platformio scripting, but I can’t be bothered to do a cross-platform version of the patch script so you will have to apply it manually. After an initial compilation to install the libraries, edit .pio/build/m5stack-stamps3/M5Dial/src/utility/Encoder.h . Find this line:
#define CORE_NUM_INTERRUPT 40
Copy
and replace it with
#define CORE_NUM_INTERRUPT 42 /* was 40 */ #define CORE_INT40_PIN 40 /* added */ #define CORE_INT41_PIN 41 /* added */
My search for the file only brought a result once I reopened VSCode, and clicked “Build” again, and then searched again while VSCode was still open.
In other news, I got the case done, and I got the wiring done on the pendant side. I still need to get the connection done on the Jackpot board side.