Closed DamianSuess closed 1 year ago
Having some #defs like INTERNAL_DS_*
would be neat. But there's really no standard for that and therefore potential variability between boards. So that could end up being another source of confusion.
As a simpler approach, can just add a new dedicated example for Gemma M0. Checkout the example code in PR #45.
Closing. See new example added with #56.
The new BSP provided defines for DotStar are:
DOTSTAR_NUM
= number of onboard DotStars (typically just 1)PIN_DOTSTAR_DATA
= onboard DotStar data pinPIN_DOTSTAR_CLK
= onboard DotStar clock pin
When following the example code for the
ItsyBitsyM4 Onboard
, it was not clear which Data/Cock Pin numbers to use for the Gemma M0 without prior knowledge of the board's schematics or pinouts.As a suggestion, could the example code be simplified to use "internal" DotStar #defines such as
INTERNAL_DS_DATA
andINTERNAL_DS_CLK
? After doing a quick skim of the framework-arduinosam package library, it appears that most of the boards with an on-board DotStar define this in theirvariant.h
file.Example
Versus the current example, which the user must look up their board's data/clock pin numbers.
Please correct me if this is an unsupported
#define
to use for on-board DotStars. Thank you and keep up the great work!