adafruit / Adafruit_DotStar

GNU General Public License v3.0
97 stars 58 forks source link

REQ: Please Add Support For MKR-RGB and Portenta H7 #39

Closed jwestmoreland closed 3 years ago

jwestmoreland commented 3 years ago

Note - example in DotStarMatrix will demonstrate the changes - so, this in addition to the PR in the DotStarMatrix PR are necessary.

REQ: Please Add Support for the MRK-RGB Shield and the Portenta_H7. A jumper must be placed from A3->A5 when using the MRK-RGB shield on the Portenta H7.

List of changes: The MRK-RGB shield has to used in 'bit-bang' mode to work on the Portenta H7 and one jumper must be added - the A3 pin must be jumpered to A5. It's a relatively easy change to be able to use the shield on the H7. Yes, it's a one-off but I must admit I like to use that shield on the H7. And, you can't have too many graphics libs, right?

In Adafruit_Dotstar.h: added:

define PORTENTA_H7 // STM32H747xI

In Adafruit_Dotstar.cpp: added:

ifndef PORTENTA_H7 'wrapper' to force use of software spi (a.k.a. bit-bang mode).

Readme.md: Updated to summarize changes made.

To run as-is (before this update) - just comment out the

define PORTENTA_H7 // STM32H747xI

in Adafruit_Dotstar.h.

This update is also demonstrated in a subsequent PR in the Adafruit_DotStarMatrix library: ..\examples\dotstar_wing\dotstar_win.ino has been updated to allow use of the MKR-RGB shield on the Portenta H7.

jwestmoreland commented 3 years ago

Closing this and will resubmit - clang error - not sure what's wrong as this built fine in my system. I made a commit in the middle of this PR - maybe that's the issue.

jwestmoreland commented 3 years ago

Closed.