@@ -230,22 +230,23 @@ STATIC mp_obj_t displayio_display_obj_show(mp_obj_t self_in, mp_obj_t group_in)
230
230
MP_DEFINE_CONST_FUN_OBJ_2 (displayio_display_show_obj , displayio_display_obj_show );
231
231
232
232
//| def refresh(self, *, target_frames_per_second: Optional[int] = None, minimum_frames_per_second: int = 0) -> bool:
233
- //| """When auto refresh is off, waits for the target frame rate and then refreshes the display,
234
- //| returning True. If the call has taken too long since the last refresh call for the given
235
- //| target frame rate, then the refresh returns False immediately without updating the screen to
233
+ //| """When auto_refresh is off, and :py:attr:`target_frames_per_second` is not `None` this waits
234
+ //| for the target frame rate and then refreshes the display,
235
+ //| returning `True`. If the call has taken too long since the last refresh call for the given
236
+ //| target frame rate, then the refresh returns `False` immediately without updating the screen to
236
237
//| hopefully help getting caught up.
237
238
//|
238
239
//| If the time since the last successful refresh is below the minimum frame rate, then an
239
- //| exception will be raised. The default `` minimum_frames_per_second` ` of 0 disables this behavior.
240
+ //| exception will be raised. The default :py:attr:` minimum_frames_per_second` of 0 disables this behavior.
240
241
//|
241
- //| When auto refresh is off, ``display.refresh()`` or ``display.refresh(target_frames_per_second= None)``
242
+ //| When auto_refresh is off, and :py:attr:`target_frames_per_second` is ` None` this
242
243
//| will update the display immediately.
243
244
//|
244
- //| When auto refresh is on, updates the display immediately. (The display will also update
245
+ //| When auto_refresh is on, updates the display immediately. (The display will also update
245
246
//| without calls to this.)
246
247
//|
247
- //| :param int target_frames_per_second: How many times a second `refresh` should be called and the screen updated.
248
- //| Set to `None` for immediate refresh.
248
+ //| :param Optional[ int] target_frames_per_second: The target frame rate that :py:func: `refresh` should try to
249
+ //| achieve. Set to `None` for immediate refresh.
249
250
//| :param int minimum_frames_per_second: The minimum number of times the screen should be updated per second."""
250
251
//| ...
251
252
//|
0 commit comments