|
40 | 40 | //| class IS31FL3741_FrameBuffer:
|
41 | 41 | //| """Creates an in-memory framebuffer for a IS31FL3741 device."""
|
42 | 42 | //|
|
43 |
| -//| def __init__(self, *, width: int) -> None: |
| 43 | +//| def __init__(self, is31: ~is31fl3741.IS31FL3741, width: int, height: int, mapping: Tuple[int, ...], *, |
| 44 | +//| framebuffer: Optional[WriteableBuffer] = None, scale: bool = false, gamma: bool = false) -> None: |
44 | 45 | //| """Create a IS31FL3741_FrameBuffer object with the given attributes.
|
45 | 46 | //|
|
46 | 47 | //| The framebuffer is in "RGB888" format using 4 bytes per pixel.
|
|
51 | 52 | //| by passing the Is31fl3741 object to memoryview().
|
52 | 53 | //|
|
53 | 54 | //| A Is31fl3741 is often used in conjunction with a
|
54 |
| -//| `framebufferio.FramebufferDisplay`.""" |
| 55 | +//| `framebufferio.FramebufferDisplay`. |
| 56 | +//| |
| 57 | +//| :param ~is31fl3741.IS31FL3741 is31: base IS31FL3741 instance to drive the framebuffer |
| 58 | +//| :param int width: width of the display |
| 59 | +//| :param int height: height of the display |
| 60 | +//| :param Tuple[int, ...] mapping: mapping of matrix locations to LEDs |
| 61 | +//| :param Optional[WriteableBuffer] framebuffer: Optional buffer to hold the display |
| 62 | +//| :param bool scale: if True display is scaled down by 3 when displayed |
| 63 | +//| :param bool gamma: if True apply gamma correction to all LEDs""" |
| 64 | +//| ... |
55 | 65 | //|
|
56 | 66 | STATIC mp_obj_t is31fl3741_FrameBuffer_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
|
57 | 67 | enum { ARG_is31, ARG_width, ARG_height, ARG_framebuffer, ARG_mapping, ARG_scale, ARG_gamma };
|
|
0 commit comments