Short tutorial on how to use the ESP32 as a DCC accessory decoder using the supplied sketch.
UPDATE 20/03/2023
I found the original code could be a bit temperamental so have rewritten it a few times.
The Digital Town site now has the V9 code.
From a user perspective the same function is used to control accessories but the background functions have been rewritten.
Also the interrupt pin was changed to GPIO 16 as the built in LED was on pin 2.
The latest version has been tested on a Sprog 3 and NCE PowerCAb.
It has been found that if you have issues swap the DCC input wires over. I think I know what is causing this issue but it needs more work.
For more details, code and links go to:
http://www.digitaltown.co.uk/project6ESP32DCCAccDecodert.php