Updated readme, links now point to main branch

pull/3/head
Blaž Rolih 2021-09-29 23:19:12 +02:00 zatwierdzone przez GitHub
rodzic f5c689afb9
commit 139529c148
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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.
Library is extended verison of https://github.com/blaz-r/pico_python_ws2812b, originally forked from https://github.com/benevpi/pico_python_ws2812b.