Skip to content

Commit 9f19a8a

Browse files
mdroberts1243tannewt
authored andcommitted
Ran pre-commit locally
1 parent b1e1237 commit 9f19a8a

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

shared-bindings/displayio/Display.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@
111111
//| :param bool backlight_on_high: If True, pulling the backlight pin high turns the backlight on."""
112112
//| ...
113113
//|
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,
115115
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,
123123
ARG_SH1107_addressing };
124124
static const mp_arg_t allowed_args[] = {
125125
{ MP_QSTR_display_bus, MP_ARG_REQUIRED | MP_ARG_OBJ },

shared-bindings/displayio/Display.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
4545
uint8_t set_column_command, uint8_t set_row_command, uint8_t write_ram_command, uint8_t set_vertical_scroll,
4646
uint8_t* init_sequence, uint16_t init_sequence_len, const mcu_pin_obj_t* backlight_pin, uint16_t brightness_command,
4747
mp_float_t brightness, bool auto_brightness,
48-
bool single_byte_bounds, bool data_as_commands, bool auto_refresh, uint16_t native_frames_per_second,
48+
bool single_byte_bounds, bool data_as_commands, bool auto_refresh, uint16_t native_frames_per_second,
4949
bool backlight_on_high, bool SH1107_addressing);
5050

5151
bool common_hal_displayio_display_show(displayio_display_obj_t* self,

shared-module/displayio/Display.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
4848
uint8_t set_row_command, uint8_t write_ram_command, uint8_t set_vertical_scroll,
4949
uint8_t* init_sequence, uint16_t init_sequence_len, const mcu_pin_obj_t* backlight_pin,
5050
uint16_t brightness_command, mp_float_t brightness, bool auto_brightness,
51-
bool single_byte_bounds, bool data_as_commands, bool auto_refresh, uint16_t native_frames_per_second,
51+
bool single_byte_bounds, bool data_as_commands, bool auto_refresh, uint16_t native_frames_per_second,
5252
bool backlight_on_high, bool SH1107_addressing) {
5353

5454
// Turn off auto-refresh as we init.
@@ -246,7 +246,7 @@ STATIC bool _refresh_area(displayio_display_obj_t* self, const displayio_area_t*
246246
uint16_t rows_per_buffer = displayio_area_height(&clipped);
247247
uint8_t pixels_per_word = (sizeof(uint32_t) * 8) / self->core.colorspace.depth;
248248
uint16_t pixels_per_buffer = displayio_area_size(&clipped);
249-
249+
250250
uint16_t subrectangles = 1;
251251
// for SH1107 and other boundary constrained controllers
252252
// write one single row at a time
@@ -299,8 +299,8 @@ STATIC bool _refresh_area(displayio_display_obj_t* self, const displayio_area_t*
299299
}
300300
remaining_rows -= rows_per_buffer;
301301

302-
displayio_display_core_set_region_to_update(&self->core, self->set_column_command,
303-
self->set_row_command, NO_COMMAND, NO_COMMAND, self->data_as_commands, false,
302+
displayio_display_core_set_region_to_update(&self->core, self->set_column_command,
303+
self->set_row_command, NO_COMMAND, NO_COMMAND, self->data_as_commands, false,
304304
&subrectangle, self->SH1107_addressing);
305305

306306
uint16_t subrectangle_size_bytes;

shared-module/displayio/EPaperDisplay.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ bool displayio_epaperdisplay_refresh_area(displayio_epaperdisplay_obj_t* self, c
240240

241241
// added false parameter at end for SH1107_addressing quirk
242242
if (self->set_row_window_command != NO_COMMAND) {
243-
displayio_display_core_set_region_to_update(&self->core, self->set_column_window_command,
244-
self->set_row_window_command, self->set_current_column_command, self->set_current_row_command,
243+
displayio_display_core_set_region_to_update(&self->core, self->set_column_window_command,
244+
self->set_row_window_command, self->set_current_column_command, self->set_current_row_command,
245245
false, self->chip_select, &clipped, false);
246246
}
247247

shared-module/displayio/display_core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void displayio_display_core_construct(displayio_display_core_t* self,
5757
self->colstart = colstart;
5858
self->rowstart = rowstart;
5959
self->last_refresh = 0;
60-
60+
6161
// (framebufferdisplay already validated its 'bus' is a buffer-protocol object)
6262
if (bus) {
6363
if (MP_OBJ_IS_TYPE(bus, &displayio_parallelbus_type)) {
@@ -208,9 +208,9 @@ void displayio_display_core_end_transaction(displayio_display_core_t* self) {
208208
self->end_transaction(self->bus);
209209
}
210210

211-
void displayio_display_core_set_region_to_update(displayio_display_core_t* self, uint8_t column_command,
212-
uint8_t row_command, uint16_t set_current_column_command, uint16_t set_current_row_command,
213-
bool data_as_commands, bool always_toggle_chip_select,
211+
void displayio_display_core_set_region_to_update(displayio_display_core_t* self, uint8_t column_command,
212+
uint8_t row_command, uint16_t set_current_column_command, uint16_t set_current_row_command,
213+
bool data_as_commands, bool always_toggle_chip_select,
214214
displayio_area_t* area, bool SH1107_addressing) {
215215
uint16_t x1 = area->x1;
216216
uint16_t x2 = area->x2;

shared-module/displayio/display_core.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ bool displayio_display_core_bus_free(displayio_display_core_t *self);
7474
bool displayio_display_core_begin_transaction(displayio_display_core_t* self);
7575
void displayio_display_core_end_transaction(displayio_display_core_t* self);
7676

77-
void displayio_display_core_set_region_to_update(displayio_display_core_t* self, uint8_t column_command,
78-
uint8_t row_command, uint16_t set_current_column_command, uint16_t set_current_row_command,
79-
bool data_as_commands, bool always_toggle_chip_select,
77+
void displayio_display_core_set_region_to_update(displayio_display_core_t* self, uint8_t column_command,
78+
uint8_t row_command, uint16_t set_current_column_command, uint16_t set_current_row_command,
79+
bool data_as_commands, bool always_toggle_chip_select,
8080
displayio_area_t* area, bool SH1107_addressing);
8181

8282
void release_display_core(displayio_display_core_t* self);

0 commit comments

Comments
 (0)