bbcmicrobit / bbcmicrobit/micropython

Neopixel protocol flags

Open
#281 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
646
Forks
290
PR merge metrics
No merged PRs in 30d

Description

Thanks for all the work on the micropython runtime.

I would like to port Neopixel logic already running on the Arduino-compatible Shrimp (e.g. https://twitter.com/ShrimpingIt/status/734834598039982081 running on http://start.shrimping.it/kit/alarmclock.html ) but I'm struggling to know how to switch to the different KHZ required for the different types of pixels available under the 'Neopixel' label.

Is there a facility for this in the library, or is it only WS2812 support?

Using the Adafruit library we can currently drive PL9823 with the flags...
NEO_GRB + NEO_KHZ800
...and the WS2811 modules with...
NEO_RGB + NEO_KHZ400
...as in the Word Clock.

See...
https://github.com/ShrimpingIt/projects/blob/master/sketchbook/shrimpingit/alarmclock/RGBUnaryClock/RGBUnaryClock.ino
...and...
https://github.com/ShrimpingIt/projects/blob/master/sketchbook/shrimpingit/alarmclock/WordClock/WordClock.ino
...for the full source.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.