Skip to content

Commit

Permalink
Example updated with Adafruit Grand Central pin options
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Apr 2, 2021
1 parent 9e5afce commit b2fc100
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Adafruit_NeoPXL8
DMA-driven 8-way concurrent NeoPixel driver for SAMD21 (M0+) boards.
Requires latest Adafruit_NeoPixel and Adafruit_ZeroDMA libraries.
DMA-driven 8-way concurrent NeoPixel driver for SAMD21 (M0+) and SAMD51 (M4) boards. Requires latest Adafruit_NeoPixel and Adafruit_ZeroDMA libraries.

(Pronounced "NeoPixelate")

Expand Down Expand Up @@ -39,4 +38,6 @@ This keeps the Serial1 and SPI peripherals available, but prevents using I2C. A

The '-1' for a pin assignment disables that NeoPixel output (so this would have only 7 concurrent strands), but those pixels still take up memory and positions among the pixel indices.

Pin MUXing is a hairy thing and over time we'll try to build up some ready-to-use examples for different boards and peripherals. You can also try picking your way through the SAMD21 datasheet or the NeoPXL8 source code for pin/peripheral assignments.
Other boards (such as Grand Central) have an altogether different pinout. See the example for insights.

Pin MUXing is a hairy thing and over time we'll try to build up some ready-to-use examples for different boards and peripherals. You can also try picking your way through the SAMD21/51 datasheet or the NeoPXL8 source code for pin/peripheral assignments.
4 changes: 4 additions & 0 deletions examples/strandtest/strandtest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Adafruit_NeoPXL8 leds(NUM_LED, NULL, NEO_GRB);
// Alternates are available for the last 4 pins:
//int8_t pins[8] = { 13, 12, 11, 10, PIN_SERIAL1_RX, PIN_SERIAL1_TX, SCL, SDA };

// For Grand Central, here are primary and alternate pin options:
//int8_t pins[8] = { 30, 31, 32, 33, 36, 37, 34, 35 };
//int8_t pins[8] = { 30, 31, 32, 33, 15, 14, 27, 26 };


void setup() {
leds.begin();
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit NeoPXL8
version=1.0.4
version=1.0.5
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Arduino library for controlling 8 NeoPixel LED strips using DMA on ATSAMD21, ATSAMD51
Expand Down

0 comments on commit b2fc100

Please sign in to comment.