Install the following libraries via the Arduino Library Manager:
Adafruit MCP23017 Arduino Library, by Adafruit (v2.3.2) (note: install with dependencies)
Adafruit GFX Library, by Adafruit (v1.11.11) (note: install with dependencies)
ArduinoJson, by Benoit Blanchon (v7.3.0)
Chrono, by Thomas O. Fredericks (v1.2.0)
Timer, by Stefan Staub (v1.2.1)
Several libraries need to be installed manually. The manual process is:
Go to the provided GitHub link for the library and download the library as a zip by clicking Code -> Download ZIP.
Import it into the Arduino 2 IDE by clicking Sketch -> Include Library -> Add .ZIP library, and then selecting the file you just downloaded.
The libraries to install using this process are:
OpenAudio:
Regressino:
Arduino Regression:
?
The file Config.h includes several compiler options which add, subtract, or adjust parameters of some features. Please review this file prior to compilation.
Completing a FLASH erase of the Teensy is strongly recommended before uploading this new version. The instructions for performing a FLASH erase of the Teensy are at under the bullet "Memory Wipe & LED Blink Restore".
Select the Teensy 4.1 board, and select the following build configuration options:
Tools->Optimize->Fast with LTO
Tools->USB Type->Dual Serial
Tools->CPU Speed->600 MHz
Some people report success running the CPU at 528 MHz. The memory usage after compiling should look like this:
FLASH: code:272292, data:129336, headers:8988 free for files:7715848
RAM1: variables:178112, code:249800, padding:12344 free for local variables:84032
RAM2: variables:474720 free for malloc/new:49568