50
50
//| Most people should not use this class directly. Use a specific display driver instead that will
51
51
//| contain the initialization sequence at minimum.
52
52
//|
53
- //| .. class:: Display(display_bus, init_sequence, *, width, height, colstart=0, rowstart=0, rotation=0, color_depth=16, set_column_command=0x2a, set_row_command=0x2b, write_ram_command=0x2c, set_vertical_scroll=0, backlight_pin=None, init_cs_toggle=True, single_byte_bounds=False)
53
+ //| .. class:: Display(display_bus, init_sequence, *, width, height, colstart=0, rowstart=0, rotation=0, color_depth=16, set_column_command=0x2a, set_row_command=0x2b, write_ram_command=0x2c, set_vertical_scroll=0, backlight_pin=None, single_byte_bounds=False)
54
54
//|
55
55
//| Create a Display object on the given display bus (`displayio.FourWire` or `displayio.ParallelBus`).
56
56
//|
91
91
//| :param int write_ram_command: Command used to write pixels values into the update region
92
92
//| :param int set_vertical_scroll: Command used to set the first row to show
93
93
//| :param microcontroller.Pin backlight_pin: Pin connected to the display's backlight
94
- //| :param bool init_cs_toggle: Toggle the Chip Select between each initialization command
95
94
//| :param bool single_byte_bounds: Display column and row commands use single bytes
96
95
//|
97
96
STATIC mp_obj_t displayio_display_make_new (const mp_obj_type_t * type , size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
98
- enum { ARG_display_bus , ARG_init_sequence , ARG_width , ARG_height , ARG_colstart , ARG_rowstart , ARG_rotation , ARG_color_depth , ARG_set_column_command , ARG_set_row_command , ARG_write_ram_command , ARG_set_vertical_scroll , ARG_backlight_pin , ARG_init_cs_toggle , ARG_single_byte_bounds };
97
+ enum { ARG_display_bus , ARG_init_sequence , ARG_width , ARG_height , ARG_colstart , ARG_rowstart , ARG_rotation , ARG_color_depth , ARG_set_column_command , ARG_set_row_command , ARG_write_ram_command , ARG_set_vertical_scroll , ARG_backlight_pin , ARG_single_byte_bounds };
99
98
static const mp_arg_t allowed_args [] = {
100
99
{ MP_QSTR_display_bus , MP_ARG_REQUIRED | MP_ARG_OBJ },
101
100
{ MP_QSTR_init_sequence , MP_ARG_REQUIRED | MP_ARG_OBJ },
@@ -110,7 +109,6 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
110
109
{ MP_QSTR_write_ram_command , MP_ARG_INT | MP_ARG_KW_ONLY , {.u_int = 0x2c } },
111
110
{ MP_QSTR_set_vertical_scroll , MP_ARG_INT | MP_ARG_KW_ONLY , {.u_int = 0x0 } },
112
111
{ MP_QSTR_backlight_pin , MP_ARG_OBJ | MP_ARG_KW_ONLY , {.u_obj = mp_const_none } },
113
- { MP_QSTR_init_cs_toggle , MP_ARG_BOOL | MP_ARG_KW_ONLY , {.u_bool = true} },
114
112
{ MP_QSTR_single_byte_bounds , MP_ARG_BOOL | MP_ARG_KW_ONLY , {.u_bool = false} },
115
113
};
116
114
mp_arg_val_t args [MP_ARRAY_SIZE (allowed_args )];
@@ -151,7 +149,6 @@ STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_a
151
149
args [ARG_write_ram_command ].u_int ,
152
150
args [ARG_set_vertical_scroll ].u_int ,
153
151
bufinfo .buf , bufinfo .len , MP_OBJ_TO_PTR (backlight_pin ),
154
- args [ARG_init_cs_toggle ].u_bool ,
155
152
args [ARG_single_byte_bounds ].u_bool );
156
153
157
154
return self ;
0 commit comments