|
111 | 111 | //| :param bool backlight_on_high: If True, pulling the backlight pin high turns the backlight on.""" |
112 | 112 | //| ... |
113 | 113 | //| |
114 | | -STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_args, |
| 114 | +STATIC mp_obj_t displayio_display_make_new(const mp_obj_type_t *type, size_t n_args, |
115 | 115 | const mp_obj_t *pos_args, mp_map_t *kw_args) { |
116 | | - enum { ARG_display_bus, ARG_init_sequence, ARG_width, ARG_height, ARG_colstart, ARG_rowstart, |
117 | | - ARG_rotation, ARG_color_depth, ARG_grayscale, ARG_pixels_in_byte_share_row, |
118 | | - ARG_bytes_per_cell, ARG_reverse_pixels_in_byte, ARG_reverse_bytes_in_word, |
119 | | - ARG_set_column_command, ARG_set_row_command, ARG_write_ram_command, |
120 | | - ARG_set_vertical_scroll, ARG_backlight_pin, ARG_brightness_command, |
121 | | - ARG_brightness, ARG_auto_brightness, ARG_single_byte_bounds, ARG_data_as_commands, |
122 | | - ARG_auto_refresh, ARG_native_frames_per_second, ARG_backlight_on_high, |
| 116 | + enum { ARG_display_bus, ARG_init_sequence, ARG_width, ARG_height, ARG_colstart, ARG_rowstart, |
| 117 | + ARG_rotation, ARG_color_depth, ARG_grayscale, ARG_pixels_in_byte_share_row, |
| 118 | + ARG_bytes_per_cell, ARG_reverse_pixels_in_byte, ARG_reverse_bytes_in_word, |
| 119 | + ARG_set_column_command, ARG_set_row_command, ARG_write_ram_command, |
| 120 | + ARG_set_vertical_scroll, ARG_backlight_pin, ARG_brightness_command, |
| 121 | + ARG_brightness, ARG_auto_brightness, ARG_single_byte_bounds, ARG_data_as_commands, |
| 122 | + ARG_auto_refresh, ARG_native_frames_per_second, ARG_backlight_on_high, |
123 | 123 | ARG_SH1107_addressing }; |
124 | 124 | static const mp_arg_t allowed_args[] = { |
125 | 125 | { MP_QSTR_display_bus, MP_ARG_REQUIRED | MP_ARG_OBJ }, |
|
0 commit comments