From 139529c148ded653c726644a4028c5ae4bac2b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Rolih?= <61357777+blaz-r@users.noreply.github.com> Date: Wed, 29 Sep 2021 23:19:12 +0200 Subject: [PATCH] Updated readme, links now point to main branch --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e9f911a..cc81188 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ For new settings to take effect you write: pixels.show() ``` -For more examples, check [examples folder](https://github.com/blaz-r/pi_pico_neopixel/tree/develop/examples). +For more examples, check [examples folder](https://github.com/blaz-r/pi_pico_neopixel/tree/main/examples). ## HSV colors -Library also supports HSV colors. For example you can look at [smoothRinbow.py](https://github.com/blaz-r/pi_pico_neopixel/blob/develop/examples/smoothRainbow.py). +Library also supports HSV colors. For example you can look at [smoothRinbow.py](https://github.com/blaz-r/pi_pico_neopixel/blob/main/examples/smoothRainbow.py). To use HSV colors, call colorHSV(hue, sat, val) function with hue, saturation and value as parameters. The function returns rgb tuple that you can then use in all other functions. Hue should be between 0 and 65535. When it becomes larger it just rolls over (65536 -> 0). Saturation and value must be in range from 0 to 255. 255 saturation means just hue, and 255 value is maximum brightness. For more info about HSV colors you can check out [Adafruit NeoPixel library documentation](https://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-use) and scroll down to HSV section. @@ -58,4 +58,4 @@ pixels.fill(color) pixels.show() ``` -Library is extended verison of https://github.com/blaz-r/pico_python_ws2812b, originally forked from https://github.com/benevpi/pico_python_ws2812b. \ No newline at end of file +Library is extended verison of https://github.com/blaz-r/pico_python_ws2812b, originally forked from https://github.com/benevpi/pico_python_ws2812b.