diff --git a/lang/en/typeshed/stdlib/neopixel.pyi b/lang/en/typeshed/stdlib/neopixel.pyi index 15f4090..3bfe076 100644 --- a/lang/en/typeshed/stdlib/neopixel.pyi +++ b/lang/en/typeshed/stdlib/neopixel.pyi @@ -9,13 +9,20 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` - RGBW neopixels are only supported by micro:bit V2. + To support RGBW neopixels, a third argument can be passed to + ``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). + For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + + Each pixel is addressed by a position (starting from 0). Neopixels are + given RGB (red, green, blue) / RGBW (red, green, blue, white) values + between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is + white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice. :param pin: The pin controlling the neopixel strip. :param n: The number of neopixels in the strip. - :param bpp: Bytes per pixel. For micro:bit V2 RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB. + :param bpp: Bytes per pixel. For RGBW neopixel support, pass 4 rather than the default of 3 for RGB and GRB. """ ... def clear(self) -> None: diff --git a/lang/es-es/typeshed/stdlib/neopixel.pyi b/lang/es-es/typeshed/stdlib/neopixel.pyi index 80a5f96..6107f42 100644 --- a/lang/es-es/typeshed/stdlib/neopixel.pyi +++ b/lang/es-es/typeshed/stdlib/neopixel.pyi @@ -9,7 +9,14 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` -RGBW neopixels are only supported by micro:bit V2. +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice. diff --git a/lang/fr/typeshed/stdlib/neopixel.pyi b/lang/fr/typeshed/stdlib/neopixel.pyi index 35f895c..b7173a8 100644 --- a/lang/fr/typeshed/stdlib/neopixel.pyi +++ b/lang/fr/typeshed/stdlib/neopixel.pyi @@ -9,7 +9,14 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` -RGBW neopixels are only supported by micro:bit V2. +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice. diff --git a/lang/ja/typeshed/stdlib/neopixel.pyi b/lang/ja/typeshed/stdlib/neopixel.pyi index 25cb4ce..9cc47bd 100644 --- a/lang/ja/typeshed/stdlib/neopixel.pyi +++ b/lang/ja/typeshed/stdlib/neopixel.pyi @@ -9,7 +9,14 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` -RGBW neopixels are only supported by micro:bit V2. +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice. diff --git a/lang/ko/typeshed/stdlib/neopixel.pyi b/lang/ko/typeshed/stdlib/neopixel.pyi index 45f45bc..7a28570 100644 --- a/lang/ko/typeshed/stdlib/neopixel.pyi +++ b/lang/ko/typeshed/stdlib/neopixel.pyi @@ -9,7 +9,14 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` -RGBW neopixels are only supported by micro:bit V2. +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice. diff --git a/lang/nl/typeshed/stdlib/neopixel.pyi b/lang/nl/typeshed/stdlib/neopixel.pyi index 483d3e9..fd02f1d 100644 --- a/lang/nl/typeshed/stdlib/neopixel.pyi +++ b/lang/nl/typeshed/stdlib/neopixel.pyi @@ -9,7 +9,14 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` -RGBW neopixels are only supported by micro:bit V2. +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice. diff --git a/lang/zh-cn/typeshed/stdlib/neopixel.pyi b/lang/zh-cn/typeshed/stdlib/neopixel.pyi index a0f1fd5..e4fbdf7 100644 --- a/lang/zh-cn/typeshed/stdlib/neopixel.pyi +++ b/lang/zh-cn/typeshed/stdlib/neopixel.pyi @@ -9,7 +9,14 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` -RGBW neopixels are only supported by micro:bit V2. +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice. diff --git a/lang/zh-tw/typeshed/stdlib/neopixel.pyi b/lang/zh-tw/typeshed/stdlib/neopixel.pyi index 14300a7..be4eda1 100644 --- a/lang/zh-tw/typeshed/stdlib/neopixel.pyi +++ b/lang/zh-tw/typeshed/stdlib/neopixel.pyi @@ -9,7 +9,14 @@ class NeoPixel: Example: ``np = neopixel.NeoPixel(pin0, 8)`` -RGBW neopixels are only supported by micro:bit V2. +To support RGBW neopixels, a third argument can be passed to +``NeoPixel`` to indicate the number of bytes per pixel (``bpp``). +For RGBW, this is is 4 rather than the default of 3 for RGB and GRB. + +Each pixel is addressed by a position (starting from 0). Neopixels are +given RGB (red, green, blue) / RGBW (red, green, blue, white) values +between 0-255 as a tuple. For example, in RGB, ``(255,255,255)`` is +white. In RGBW, ``(255,255,255,0)`` or ``(0,0,0,255)`` is white. See `the online docs `_ for warnings and other advice.