Confused. Does that mean the printout of the referenced script is not correct for the T4.1? Didn't have a chance to test it with a 4.1 but defragster did generate some data using the script with a 4.1. Here a link to the (maybe wrong?) table
https://github.com/luni64/TeensyTimerTool/wiki/Avoid-PWM-timer-clashes#teensy-41
No, the print out is correct. What I was pointing out that pin #34 and above on the Teensy 4.1 are different pins on the Teensy 4.0.
On the Teensy 4.1, pin #34 connects to GPIO7_29, and does not have PWM capability. Pin 34 is the second to the last pin on the outside row of pins on the left side (with the USB port facing up).
On the Teensy 4.0, pin #34 connects to GPIO8_15, and uses the FLEX_PWM1 timer for PWM. On the Teensy 4.0, pin #34 is the first solder pad underneath the Teensy 4.0 on the left side in the first row of solder pads of the Teensy 4.0. That row of solder pads is made for bringing out a micro-SD card reader. On some of the breakout boards for the Teensy 4.0, these pins are brought out so that you could connect your own micro-SD card reader.
The reason for this is that Teensy 4.1 added 20 more external pins, growing the length of the PCB from 1.4" to 2.4". Of those 20 extra pins, there is a 3.3v and ground pin. Then there are 9 pins on one side, and 9 pins on the other. Paul numbered these pins sequentially. Pins 24-32 on the right side are the same pins that are provided in solder pads in the Teensy 4.0. There is also pin 33 on the left side that is a pin brought out with a solder pad in the Teensy 4.0. This leaves 8 more pins, that on the Teensy 4.1 are numbered pin 34-41.
In addition to the 48 pins on the edges, the Teensy 4.1 has a micro-SD card reader, similar to the Teensy 3.5/3.6. On the Teensy 4.1, the micro-SD card reader pins uses pins 42-47 for the micro-SD reader.
Other Teensies have similar pin naming challenges. On the Teensy 3.1, and 3.2 the analog pin in the back row that provides digital to analog conversion (i.e. DAC, it can be used for mono sound output) is pin A14. On the Teensy LC, the DAC pin in the same place is A12, not A14. On the Teensy 3.5 and 3.6, A14 is a normal analog input and digital pin that is on the left end of the Teensy, and the two DAC pins are A21/A22. The Teensy 4.0 does not have an A14 pin, and it also does not have a DAC pin at all. The Teensy 4.1 does have an A14 pin, and it is on the left side. Like the Teensy 4.0, there is no DAC pin.