Zuno NeoPixel Library

The library is designed to work with LED strips and neo-pixel rings based on WS2812 and WS2811 LEDs. The library supports multiple LED strips. The number of supported tapes depends on the amount of free RAM. More details here: addNeo The library can work with any pin if the appropriate peripherals are selected. More details here: addNeo For more infomation about pins of Z-Uno here Note that NeoPixel uses one DMA channel. Note that NeoPixel использует разделяемую перефирию: USART0/USART1/USART2/TIMER0/TIMER1/WTIMER0 - the default is USART1. Peripherals can be used by only one biocell at a time. Custom pins can be used by calling addNeo()
The table below shows which pin can be used on which NeoPixel port
Pin # USART0 USART1 USART2 TIMER0 TIMER1 WTIMER0
0 ✔ ✔ ✘ ✔ ✔ ✔
1 ✔ ✔ ✘ ✔ ✔ ✔
2 ✔ ✔ ✘ ✔ ✔ ✘
3 ✔ ✔ ✔ ✔ ✔ ✘
4 ✔ ✔ ✔ ✔ ✔ ✘
5 ✔ ✔ ✘ ✔ ✔ ✘
6 ✔ ✔ ✘ ✔ ✔ ✘
7 ✔ ✔ ✔ ✔ ✔ ✘
8 ✔ ✔ ✔ ✔ ✔ ✘
9 ✔ ✔ ✘ ✔ ✔ ✘
10 ✔ ✔ ✘ ✔ ✔ ✘
11 ✔ ✔ ✘ ✔ ✔ ✘
12 ✔ ✔ ✘ ✔ ✔ ✘
13 ✔ ✔ ✘ ✔ ✔ ✔
14 ✔ ✔ ✘ ✔ ✔ ✔
15 ✔ ✔ ✘ ✔ ✔ ✔
16 ✔ ✔ ✘ ✔ ✔ ✔
17 ✔ ✔ ✘ ✔ ✔ ✔
18 ✔ ✔ ✘ ✔ ✔ ✔
19 ✔ ✔ ✘ ✔ ✔ ✔
20 ✔ ✔ ✘ ✔ ✔ ✔
21 ✔ ✔ ✘ ✔ ✔ ✔
22 ✔ ✔ ✘ ✔ ✔ ✔
23 ✔ ✔ ✘ ✔ ✔ ✔
24 ✔ ✔ ✘ ✔ ✔ ✘
25 ✔ ✔ ✘ ✔ ✔ ✔
#include "Arduino.h"
#include "ZUNO_NeoPixel.h"

/* LED counter */
#define LED_COUNT				150

/* LED pin number */
#define LED_PIN					9

/* the setup function runs once, when you press reset or power the board */
void setup() {
	NeoPixel.addNeo(LED_PIN, LED_COUNT);
}

/* the loop function runs over and over again forever */
void loop() {
	/* Turn on all LEDs */
	NeoPixel.fill(LED_PIN, 0, LED_COUNT, NeoPixel.RGB(255, 255, 0));
	/* Transferring colors to the ribbon */
	NeoPixel.show(LED_PIN); 
	delay(500); 
	/* Turn off all LEDs */
	NeoPixel.clear(LED_PIN);
	/* Transferring colors to the ribbon */
	NeoPixel.show(LED_PIN); 
	delay(500); 
}