@@ -327,27 +327,29 @@ def set_backlight(self, val):
327
327
board .DISPLAY .brightness = val
328
328
329
329
def preload_font (self , glyphs = None ):
330
+ # pylint: disable=line-too-long
330
331
"""Preload font.
331
332
332
- :param glyphs: The font glyphs to load. Defaults to ``None``,
333
- uses alphanumeric glyphs if None.
333
+ :param glyphs: The font glyphs to load. Defaults to ``None``, uses alphanumeric glyphs if None.
334
334
335
335
"""
336
+ # pylint: enable=line-too-long
336
337
if not glyphs :
337
338
glyphs = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. "\' ?!'
338
339
print ("Preloading font glyphs:" , glyphs )
339
340
if self ._text_font :
340
341
self ._text_font .load_glyphs (glyphs )
341
342
342
343
def set_caption (self , caption_text , caption_position , caption_color ):
344
+ # pylint: disable=line-too-long
343
345
"""A caption. Requires setting ``caption_font`` in init!
344
346
345
347
:param caption_text: The text of the caption.
346
348
:param caption_position: The position of the caption text.
347
- :param caption_color: The color of your caption text. Must be a hex value,
348
- e.g. ``0x808000``.
349
+ :param caption_color: The color of your caption text. Must be a hex value, e.g. ``0x808000``.
349
350
350
351
"""
352
+ # pylint: enable=line-too-long
351
353
if self ._debug :
352
354
print ("Setting caption to" , caption_text )
353
355
@@ -438,12 +440,13 @@ def _json_traverse(json, path):
438
440
return value
439
441
440
442
def get_local_time (self , location = None ):
441
- """Fetch and "set" the local time of this microcontroller to the local
442
- time at the location, using an internet time API.
443
+ # pylint: disable=line-too-long
444
+ """Fetch and "set" the local time of this microcontroller to the local time at the location, using an internet time API.
443
445
444
446
:param str location: Your city and country, e.g. ``"New York, US"``.
445
447
446
448
"""
449
+ # pylint: enable=line-too-long
447
450
self ._connect_esp ()
448
451
api_url = None
449
452
if not location :
0 commit comments