7474//| :param microcontroller.Pin power: The pin that controls power to the display (optional).
7575//| :param bool free_bus: Determines whether the SPI bus passed in will be freed when the frame buffer is freed.
7676//| """
77- //|...
77+ //| ...
7878static mp_obj_t aurora_epaper_framebuffer_make_new (const mp_obj_type_t * type , size_t n_args , size_t n_kw , const mp_obj_t * all_args ) {
7979 enum { ARG_spi_bus , ARG_chip_select , ARG_reset , ARG_busy , ARG_discharge , ARG_width , ARG_height , ARG_power , ARG_free_bus , NUM_ARGS };
8080 static const mp_arg_t allowed_args [] = {
@@ -121,7 +121,7 @@ static mp_int_t aurora_epaper_framebuffer_get_buffer(mp_obj_t self_in, mp_buffer
121121//| """Free the resources (pins, timers, etc.) associated with this
122122//| AuroraMemoryFramebuffer instance. After deinitialization, no further operations
123123//| may be performed."""
124- //| ...
124+ //| ...
125125static mp_obj_t aurora_epaper_framebuffer_deinit (mp_obj_t self_in ) {
126126 aurora_epaper_framebuffer_obj_t * self = (aurora_epaper_framebuffer_obj_t * )self_in ;
127127 common_hal_aurora_epaper_framebuffer_deinit (self );
@@ -136,7 +136,7 @@ static MP_DEFINE_CONST_FUN_OBJ_1(aurora_epaper_framebuffer_deinit_obj, aurora_ep
136136//| """Set the ambient temperature (in celsius) for the display driver.
137137//| Higher temperature means faster update speed.
138138//| """
139- //| ...
139+ //| ...
140140static mp_obj_t aurora_epaper_frambuffer_set_temperature (mp_obj_t self_in , mp_obj_t temperature ) {
141141 aurora_epaper_framebuffer_obj_t * self = (aurora_epaper_framebuffer_obj_t * )self_in ;
142142
@@ -149,7 +149,7 @@ static MP_DEFINE_CONST_FUN_OBJ_2(aurora_epaper_frambuffer_set_temperature_obj, a
149149//| free_bus: bool
150150//| """When True the spi bus passed into the device will be freed on deinit.
151151//| If you have multiple displays this could be used to keep the other active on soft reset."""
152- //| ...
152+ //| ...
153153static mp_obj_t aurora_epaper_framebuffer_get_free_bus (mp_obj_t self_in ) {
154154 aurora_epaper_framebuffer_obj_t * self = (aurora_epaper_framebuffer_obj_t * )self_in ;
155155 return mp_obj_new_bool (self -> free_bus );
0 commit comments