@@ -44,7 +44,7 @@ extern const int32_t colorwheel(float pos);
44
44
45
45
static void parse_byteorder (mp_obj_t byteorder_obj , pixelbuf_byteorder_details_t * parsed );
46
46
47
- //| .. currentmodule:: pixelbuf
47
+ //| .. currentmodule:: _pixelbuf
48
48
//|
49
49
//| :class:`PixelBuf` -- A fast RGB[W] pixel buffer for LED and similar devices
50
50
//| ===========================================================================
@@ -58,13 +58,13 @@ static void parse_byteorder(mp_obj_t byteorder_obj, pixelbuf_byteorder_details_t
58
58
//| When brightness is less than 1.0, a second buffer will be used to store the color values
59
59
//| before they are adjusted for brightness.
60
60
//|
61
- //| When ``P`` (pwm duration) is present as the 4th character of the byteorder
61
+ //| When ``P`` (pwm duration) is present as the first character of the byteorder
62
62
//| string, the 4th value in the tuple/list for a pixel is the individual pixel
63
63
//| brightness (0.0-1.0) and will enable a Dotstar compatible 1st byte in the
64
64
//| output buffer (``buf``).
65
65
//|
66
- //| :param ~int size: Number of pixelsx
67
- //| :param ~str byteorder: Byte order string (such as "BGR" or "PBGR ")
66
+ //| :param ~int size: Number of pixels
67
+ //| :param ~str byteorder: Byte order string (such as "BGR" or "BGRP ")
68
68
//| :param ~float brightness: Brightness (0 to 1.0, default 1.0)
69
69
//| :param ~bool auto_write: Whether to automatically write pixels (Default False)
70
70
//| :param bytes header: Sequence of bytes to always send before pixel values.
@@ -265,7 +265,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_show(mp_obj_t self_in) {
265
265
}
266
266
STATIC MP_DEFINE_CONST_FUN_OBJ_1 (pixelbuf_pixelbuf_show_obj , pixelbuf_pixelbuf_show );
267
267
268
- //| .. function :: fill(color)
268
+ //| .. method :: fill(color)
269
269
//|
270
270
//| Fills the given pixelbuf with the given color.
271
271
//|
0 commit comments