Port program (Speeduino) for Teensy 4.1 to MicroMod

Hi, I’m trying to port Speeduino software (is designed to compile for ATmega2560, Teensy 3.5, Teensy 4.1, STM32) if I compile stock software have some errors about analog pins (MicroMod only have A0 to A13)

I made some changes and I was able to compile, but when I upload to MicroMod board, it’s crashing avery few seconds and connection reboots, can some one pointme what to look for and what change need over Teensy 4.1 to work on MicroMod.

I attach original and modified software If some one can check.

Thanks

speeduino-202305(MicroMod).zip (2.02 MB)

speeduino-202305(Stock).zip (2.02 MB)

This are the correct Speeduino code stock and MicroMod in previous post both are the stock code and I upload complete carpet with other stuff.

speeduino-202305(Stock).zip (2.02 MB)

speeduino-202305_MicroMod.zip (1.61 MB)