I’m using the Teensy3-shieldV4 Smart Matrix shield and Teensy 3.2 on an Adafruit 16x32 matrix display. I use the Adafruit display to mimic sketches I need for my bigger custom display (also 16x32 and using same logic as the Smart Matrix shield.)
I did a lot of playing around with the Adafruit display using an Arduino UNO and would like to use some of the example sketches that came with the library with the Teensy. The sketches were written for an UNO, using Adafruit’s RGBMatrixPanel library.
On the Teensy side I’m using the SmartMatrix library and Adafruit_GFX_Layers.
How do I modify code for UNO to use on the Teensy?
UNO uses D8,D9,D10 for for CLK, OE, and LAT, while Teensy uses D14,D4, D3. Row select on the UNO uses A0, A1, A2, while the Smart Matrix Shield for the Teensy generates these select lines from the on-board logic (a flip flop, 74374, I believe). The RGB pins are coded into the Adafruit library whereas the Teensy are not.
Both libraries and both displays (Adafruit and my custom one) follow HUB75 protocols/wiring.
Is it as simple as modifying the Adafruit library to match the pin numbers of the Teensy?