Hello, I notice that there are a lot more Arduino Sketches on Github written for Teensy 4.0 than Teensy 4.1. Can sketches written for Teensy 4.0 be used on Teensy 4.1?
Thanks for any help,
soky157
It depends. Most can be.
However, if the sketch uses #ifdef ARDUINO_TEENSY40, it will have to be adjusted to #ifdef ARDUINO_TEENSY41 (or maybe use #ifdef __IMXRT1062__, which covers both).
If the sketch wants to directly access the pins in the micro SD card reader, note that in the Teensy 4.0. the solder pads are 34-39, while in the Teensy 4.1, the pins inside of the micro SD card reader are 42-47.
...