Skip to content

Commit ae50809

Browse files
authored
Merge pull request #4938 from dhalbert/displayio.Display-doc-fixes
Fix displayio.Display __init__() signature documentation
2 parents 5a4a803 + 259d5b9 commit ae50809

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shared-bindings/displayio/Display.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
//| Most people should not use this class directly. Use a specific display driver instead that will
5555
//| contain the initialization sequence at minimum."""
5656
//|
57-
//| def __init__(self, display_bus: _DisplayBus, init_sequence: ReadableBuffer, *, width: int, height: int, colstart: int = 0, rowstart: int = 0, rotation: int = 0, color_depth: int = 16, grayscale: bool = False, pixels_in_byte_share_row: bool = True, bytes_per_cell: int = 1, reverse_pixels_in_byte: bool = False, set_column_command: int = 0x2a, set_row_command: int = 0x2b, write_ram_command: int = 0x2c, set_vertical_scroll: int = 0, backlight_pin: Optional[microcontroller.Pin] = None, brightness_command: Optional[int] = None, brightness: float = 1.0, auto_brightness: bool = False, single_byte_bounds: bool = False, data_as_commands: bool = False, auto_refresh: bool = True, native_frames_per_second: int = 60) -> None:
57+
//| def __init__(self, display_bus: _DisplayBus, init_sequence: ReadableBuffer, *, width: int, height: int, colstart: int = 0, rowstart: int = 0, rotation: int = 0, color_depth: int = 16, grayscale: bool = False, pixels_in_byte_share_row: bool = True, bytes_per_cell: int = 1, reverse_pixels_in_byte: bool = False, set_column_command: int = 0x2a, set_row_command: int = 0x2b, write_ram_command: int = 0x2c, set_vertical_scroll: int = 0, backlight_pin: Optional[microcontroller.Pin] = None, brightness_command: Optional[int] = None, brightness: float = 1.0, auto_brightness: bool = False, single_byte_bounds: bool = False, data_as_commands: bool = False, auto_refresh: bool = True, native_frames_per_second: int = 60, backlight_on_high: bool = True, SH1107_addressing: bool = False) -> None:
5858
//| r"""Create a Display object on the given display bus (`FourWire`, `ParallelBus` or `I2CDisplay`).
5959
//|
6060
//| The ``init_sequence`` is bitpacked to minimize the ram impact. Every command begins with a
@@ -107,10 +107,11 @@
107107
//| :param bool auto_brightness: If True, brightness is controlled via an ambient light sensor or other mechanism.
108108
//| :param bool single_byte_bounds: Display column and row commands use single bytes
109109
//| :param bool data_as_commands: Treat all init and boundary data as SPI commands. Certain displays require this.
110-
//| :param bool SH1107_addressing: Special quirk for SH1107, use upper/lower column set and page set
111110
//| :param bool auto_refresh: Automatically refresh the screen
112111
//| :param int native_frames_per_second: Number of display refreshes per second that occur with the given init_sequence.
113-
//| :param bool backlight_on_high: If True, pulling the backlight pin high turns the backlight on."""
112+
//| :param bool backlight_on_high: If True, pulling the backlight pin high turns the backlight on.
113+
//| :param bool SH1107_addressing: Special quirk for SH1107, use upper/lower column set and page set
114+
//| """
114115
//| ...
115116
//|
116117
STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_args,

0 commit comments

Comments
 (0)