pixelmatix / SmartMatrix

SmartMatrix Library for Teensy 3, Teensy 4, and ESP32
http://docs.pixelmatix.com/SmartMatrix
611 stars 161 forks source link

Any known issues with Teensy 4.0? #89

Closed opentable-echamberlain closed 3 years ago

opentable-echamberlain commented 4 years ago

Anyone try the library with the Teensy 4.0?

I’m hoping a faster board would have less flicker issues.

gothamsound commented 4 years ago

Here's the error I get when trying to compile the bitmaps demo:

` from C:\Users\peters.GOTHAM\Documents\Arduino\libraries\SmartMatrix-master\examples\Bitmaps\Bitmaps.ino:10:

C:\Users\peters.GOTHAM\Documents\Arduino\libraries\SmartMatrix-master\src/SmartMatrix_Impl.h:276:49: note: 'FTM_SC_PS' declared here, later in the translation unit

         FTM1_SC = FTM_SC_CLKS(0) | FTM_SC_PS(LATCH_TIMER_PRESCALE);

                                             ^

Using library SmartMatrix-master at version 3.2.0 in folder: C:\Users\peters.GOTHAM\Documents\Arduino\libraries\SmartMatrix-master Error compiling for board Teensy 4.0.`

embedded-creations commented 4 years ago

SmartMatrix Library doesn't support Teensy 4.0. From what I understand so far, this isn’t going to be an easy port, and Teensy 4.0 is very unlikely to be compatible with the SmartLED shield. I’m working on something that will allow driving HUB75 panels from any micro with an SPI port, so indirectly I’m working on Teensy 4.0 support, and that’s my priority for now.

I'd like to keep this discussion in one place and this thread in the SmartMatrix Community started first, but if you don't have an account feel free to post on GitHub instead:

https://community.pixelmatix.com/t/teensy-4-0-released/498

bleckers commented 4 years ago

I know this isn't really a solution to your problem, but I've whipped together a rough Teensy 4.0/arbitrary pin driver library using the Adafruit libraries - https://github.com/bleckers/RGB-Matrix-Panel-Teensy-4.0

Hopefully this spurs some more testing and development on the SmartMatrix libraries at some point.

embedded-creations commented 4 years ago

Paul's working on porting octows2812 to the Teensy 4.0, which may lend some insight on how to drive a panel with DMA:

https://twitter.com/PaulStoffregen/status/1235215894797619201

I'm still not planning on a direct Teensy 4.0 port, but I do have a Teensy 4.0 on my desk indirectly driving a 128x64 panel, using a prototype adapter board I'm working on.

bleckers commented 4 years ago

He's added the Teensy 4.0 support to octows2812!

https://github.com/PaulStoffregen/OctoWS2811/commit/35c6ff24cf0b598cfb5339aa83bf0a2d4c607f13#diff-0076f9817fc682d184d60e665989d172

Interestingly:

"// Teensy 4.x can use any arbitrary group of pins!"

embedded-creations commented 4 years ago

https://forum.pjrc.com/threads/60337-LED-Matrix-driver-for-T4-0-using-FlexIO-parallel-out-FlexPWM-DMA-amp-SmartLED-shield

benbaker76 commented 4 years ago

Teensy 4.1 has been released. Is official support more likely with this board?

embedded-creations commented 4 years ago

Support is in progress. An update, and future updates will be posted in the linked thread:

https://community.pixelmatix.com/t/teensy-4-0-released/498/27

embedded-creations commented 3 years ago

For anyone not following the thread in the SmartMatrix Community, here's an announcement about SmartLED Shield for Teensy 4 and our crowdfunding campaign: https://community.pixelmatix.com/t/smartled-shield-for-teensy-4/740

embedded-creations commented 3 years ago

Closing this as the upcoming SmartMatrix Library 4.0 has full Teensy 4 support

bleckers commented 3 years ago

Fantastic effort from everyone!