Library for controlling a strip of Adafruit NeoPixels with WS2812 drivers. Because of the strict timing requirements of the self-clocking data signal, the critical parts of code are written in ARM assembly. Currently, only the NXP LPC1768 platform is supported. More information about NeoPixels can be found at http://learn.adafruit.com/adafruit-neopixel-uberguide/overview
Fork of NeoStrip by
Revision 1:2afb4da99560, committed 2014-04-25
- Comitter:
- zchen311
- Date:
- Fri Apr 25 14:31:36 2014 +0000
- Parent:
- 0:9f237b11f0a8
- Commit message:
- initl
Changed in this revision
NeoStrip.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/NeoStrip.cpp Wed Mar 12 18:36:58 2014 +0000 +++ b/NeoStrip.cpp Fri Apr 25 14:31:36 2014 +0000 @@ -33,7 +33,7 @@ N = 0; } - gpio_init(&gpio, pin, PIN_OUTPUT); // initialize GPIO registers + gpio_init(&gpio, pin); // initialize GPIO registers neo_fio_reg = (uint32_t)gpio.reg_dir; // set registers and bitmask for neo_bitmask = 1 << ((int)pin & 0x1F); // the assembly to use }