|
54 | 54 | //| Most people should not use this class directly. Use a specific display driver instead that will
|
55 | 55 | //| contain the initialization sequence at minimum."""
|
56 | 56 | //|
|
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: |
| 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, 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: |
58 | 58 | //| r"""Create a Display object on the given display bus (`FourWire`, `ParallelBus` or `I2CDisplay`).
|
59 | 59 | //|
|
60 | 60 | //| The ``init_sequence`` is bitpacked to minimize the ram impact. Every command begins with a
|
|
100 | 100 | //| :param int set_column_command: Command used to set the start and end columns to update
|
101 | 101 | //| :param int set_row_command: Command used so set the start and end rows to update
|
102 | 102 | //| :param int write_ram_command: Command used to write pixels values into the update region. Ignored if data_as_commands is set.
|
103 |
| -//| :param int set_vertical_scroll: Command used to set the first row to show |
104 | 103 | //| :param microcontroller.Pin backlight_pin: Pin connected to the display's backlight
|
105 | 104 | //| :param int brightness_command: Command to set display brightness. Usually available in OLED controllers.
|
106 | 105 | //| :param float brightness: Initial display brightness. This value is ignored if auto_brightness is True.
|
|
111 | 110 | //| :param int native_frames_per_second: Number of display refreshes per second that occur with the given init_sequence.
|
112 | 111 | //| :param bool backlight_on_high: If True, pulling the backlight pin high turns the backlight on.
|
113 | 112 | //| :param bool SH1107_addressing: Special quirk for SH1107, use upper/lower column set and page set
|
| 113 | +//| :param int set_vertical_scroll: This parameter is accepted but ignored for backwards compatibility. It will be removed in a future release. |
114 | 114 | //| """
|
115 | 115 | //| ...
|
116 | 116 | //|
|
@@ -184,7 +184,6 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
|
184 | 184 | args[ARG_reverse_bytes_in_word].u_bool,
|
185 | 185 | args[ARG_set_column_command].u_int, args[ARG_set_row_command].u_int,
|
186 | 186 | args[ARG_write_ram_command].u_int,
|
187 |
| - args[ARG_set_vertical_scroll].u_int, |
188 | 187 | bufinfo.buf, bufinfo.len,
|
189 | 188 | MP_OBJ_TO_PTR(backlight_pin),
|
190 | 189 | args[ARG_brightness_command].u_int,
|
|
0 commit comments