Skip to content

Commit 2a98af3

Browse files
committed
More pre-commit formating
1 parent 33864ba commit 2a98af3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

shared-bindings/aurora_epaper/aurora_framebuffer.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ static mp_obj_t aurora_epaper_framebuffer_deinit(mp_obj_t self_in) {
130130
}
131131
static MP_DEFINE_CONST_FUN_OBJ_1(aurora_epaper_framebuffer_deinit_obj, aurora_epaper_framebuffer_deinit);
132132

133-
//| def set_temperature(
134-
//| self, celsius: int
135-
//| ) -> None:
133+
//| def set_temperature(self, celsius: int) -> None:
136134
//| """Set the ambient temperature (in celsius) for the display driver.
137135
//| Higher temperature means faster update speed.
138136
//| """
@@ -150,6 +148,7 @@ static MP_DEFINE_CONST_FUN_OBJ_2(aurora_epaper_frambuffer_set_temperature_obj, a
150148
//| """When True the spi bus passed into the device will be freed on deinit.
151149
//| If you have multiple displays this could be used to keep the other active on soft reset."""
152150
//| ...
151+
//|
153152
static mp_obj_t aurora_epaper_framebuffer_get_free_bus(mp_obj_t self_in) {
154153
aurora_epaper_framebuffer_obj_t *self = (aurora_epaper_framebuffer_obj_t *)self_in;
155154
return mp_obj_new_bool(self->free_bus);

shared-module/aurora_epaper/aurora_framebuffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void common_hal_aurora_epaper_framebuffer_draw_line(aurora_epaper_framebuffer_ob
417417

418418
// 3 bit to 4 bit lookup table
419419
#define DO_MAP(mapping, input) \
420-
(((mapping) >> (((input) & 5) << 2)) & 0xF)
420+
(((mapping) >> (((input) & 5) << 2)) & 0xF)
421421

422422
uint32_t evenMap =
423423
(whiteMap << 2 | whiteMap) << 0 |
@@ -474,7 +474,7 @@ void common_hal_aurora_epaper_framebuffer_draw_line(aurora_epaper_framebuffer_ob
474474

475475
// 2 bit to 4 bit lookup table
476476
#define DO_MAP(mapping, input) \
477-
(((mapping) >> (((input) & 0x3) << 2)) & 0xF)
477+
(((mapping) >> (((input) & 0x3) << 2)) & 0xF)
478478

479479
uint32_t pixelMap =
480480
(whiteMap << 2 | whiteMap) << 0 |

0 commit comments

Comments
 (0)