From 06c3e63cf390430ed1b446f7309789561b37683b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Rolih?= <61357777+blaz-r@users.noreply.github.com> Date: Thu, 15 Apr 2021 16:56:23 +0200 Subject: [PATCH] Updated readme --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e2a5d7..0a32b88 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ https://github.com/benevpi/pico_python_ws2812b/blob/main/pico_ws2812b.jpg) You'll first need to save the ws2812b.py file to your device (for example, open it in Thonny and go file > save as and select MicroPython device. Give it the same name). Once it's there, you can import it into your code. +Mind that library works with GRB order of bits. If you have RGBW or want other color/bit orders (RGB, BRG, GRBW.. ) check out my upgraded version https://github.com/blaz-r/pi_pico_neopixel . + You create an object with the parameters number of LEDs, state machine ID and GPIO number in that order. so, to create a strip of 10 leds on state machine 0 and GPIO 0, you use: ``` @@ -30,4 +32,9 @@ pixels.set_pixel_line(5, 7, rgb1) pixels.set_pixel_line_gradient(0, 13, rgb1, rgb2) ``` -Library is forked from https://github.com/benevpi/pico_python_ws2812b \ No newline at end of file +For new settings to take effect you write: +``` +pixels.show() +``` + +Library is forked from https://github.com/benevpi/pico_python_ws2812b