Skip to content

Commit 09a625c

Browse files
Update README.md
1 parent d0121f1 commit 09a625c

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,32 @@
33
Arduino Nano Every (ATmega4809) core-independent driver for WS2812B addressable RGB LEDs (aka NeoPixels).
44
No bit-banging, the communication protocol is handled by hardware peripherals, saving lots of CPU cycles.
55

6+
**Installation**
7+
8+
This library can be installed from the Arduino IDE's library manager, just search on Nano Every WS2812B.
9+
You can also copy this folder with all its files into the 'libraries' folder of the 'Sketchbook' folder:
10+
11+
[path]/[to]/Sketchbook/libraries/Nano_Every_WS2812B
12+
13+
**Usage**
14+
615
Connect the LED(s) DIN pin to pin D4 (PC6) of the Arduino Nano Every.
7-
Don't forget to connect its power supply.
16+
Don't forget to connect its power supply too.
17+
18+
**About**
819

920
This library is based on Microchip's application note [Core Independent Nightlight Using Configurable Custom
1021
Logic on ATtiny1617](https://ww1.microchip.com/downloads/en/Appnotes/00002387B.pdf) which explains how it works. However, the ATtiny1617 (@ 20 MHz) is a bit different from the ATmega4809 and the Nano Every pinning & clock frequency (16 MHz) plus the timer constraints imposed by the Arduino API required adapting the code in sometimes rather subtle ways. An oscilloscope is practical for debugging the output signal in case you have problems.
1122

23+
Peripherals used: SPI, TCB2 (TIMERB2), and LUT1 and LUT2 of the CCL.
24+
25+
Board: Arduino Nano Every (ATmega4809)
26+
27+
Developped on Arduino IDE 1.8.15
28+
1229
**IMPORTANT NOTE**
1330

1431
*This library makes the CPU run at about 12 MHz, adjust baud rates and delay times accordingly!*
1532

1633
The reason for this is that the Arduino Nano Every runs at 16 MHz, not at 20 MHz as advertised.
1734
Now timer prescaler values that would work at 20 MHz come out slightly wrong at 16 MHz. Slowing down the CPU fixes this.
18-
19-
Peripherals used: SPI, TCB2 (TIMERB2), and LUT1 and LUT2 of the CCL.
20-
21-
Board: Arduino Nano Every (ATmega4809)
22-
23-
Developped on Arduino IDE 1.8.15

0 commit comments

Comments
 (0)