Welcome!
On the pedal, set it up like this:
Set DT to accept Program Change messages in the Midi Config menus (I don’t have a DT to check exactly where right now). Then I assume PC#1 is pattern A01 on DT, PC#2 is A02 and so on.
Good luck!