Neopixels on SAM D21 Xplained Pro

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

 

I have a string of SK6812 LEDs (similar to Neopixels).  I'm looking for a simple example (preferably in C to play nice with ASF) to drive these LEDs.  So far, I've found a number of posts here on examples for AVR and Arduino based solutions, but not as much on ARM based.  I've looked at a number of libraries (Neopixel, FastLED, etc) but have been having issues converting from an Arduino library to an AS7 project for the SAM D21 Xplained Pro.

 

Any help on the best path forward would be appreciated.

Best,

Matt

Last Edited: Mon. Sep 17, 2018 - 09:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Be careful. Many of those "like Neopixel" things use different data encodings.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your best bet is to go to adafruit and see what they have for example code

 

https://www.adafruit.com/

 

East Side Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Moved to ARM forum

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Matt,

I am also looking for some code to control the Neopixels with an SAM D21. Did you already found something? I've just started. Do you already know which pins have to be used on the SAM D21? This is important for me right now as I am designing the hardware.

I also work with ASF and Atmel Studio 7.0.

I have a lot of code for the SAM4S and some for the SAM D21 and SAMC21. Maybe we can share something, just ask.

Best regards, Patrick