I did a project along those lines although it is not a port of existing code but a complete Teensy Audio Library implementation.
https://github.com/roncarr880/uSDX_Teensy
/**************************************************************************/
/*!
@brief Read one character from the GPS device.
Call very frequently and multiple times per opportunity or the buffer
may...
Touching pins adds capacitance. Is that the BCLK you are touching? You can try adding a small series resistor, 22 to 50 ohms. Or try adding a small capacitor to ground, 22 to 100 pf. Or a resistor in parallel to...
Without looking through all the SPI code to make sure that I am looking at the Teensy 4.1 code, the behavior of sending with a reference ( pointer ) rather than by value is to put the receive data in the transmit array....
Another idea for you: how is controlling dimmers not unlike hobby servos? They both have a 50 hz repeat rate for you in the UK. You may be able to control your lights with 4us resolution by adapting the PWMservo...
What kind of Timer interrupt are you using? Usually a timer interrupt is started in your setup code and started only once. You are calling begin on every interrupt which would only be needed if the Timer works as a...