101
101
#pylint: enable-msg=bad-whitespace
102
102
103
103
def _set_bit (byte_value , position , val ):
104
- """ Given the specified byte_value set the bit at position to the provided
105
- boolean value val and return the modified byte."""
104
+ # Given the specified byte_value set the bit at position to the provided
105
+ # boolean value val and return the modified byte.
106
106
ret = None
107
107
if val :
108
108
ret = byte_value | (1 << position )
@@ -124,7 +124,7 @@ class Character_LCD(object):
124
124
:param lines: The lines on the charLCD
125
125
:param ~digitalio.DigitalInOut backlight: The backlight pin, usually
126
126
the last pin. Check with your datasheet
127
- """
127
+ """
128
128
#pylint: disable-msg=too-many-arguments
129
129
def __init__ (self , rs , en , d4 , d5 , d6 , d7 , cols , lines ,
130
130
backlight = None #,
@@ -239,11 +239,10 @@ def enable_display(self, enable):
239
239
self ._write8 (LCD_DISPLAYCONTROL | self .displaycontrol )
240
240
241
241
def _write8 (self , value , char_mode = False ):
242
- """Sends 8b ``value`` in ``char_mode``.
243
- :param value: bytes
244
- :param char_mode: character/data mode selector. False (default) for
245
- data only, True for character bits.
246
- """
242
+ # Sends 8b ``value`` in ``char_mode``.
243
+ # :param value: bytes
244
+ # :param char_mode: character/data mode selector. False (default) for
245
+ # data only, True for character bits.
247
246
# one ms delay to prevent writing too quickly.
248
247
time .sleep (0.001 )
249
248
# set character/data bit. (charmode = False)
@@ -263,7 +262,7 @@ def _write8(self, value, char_mode=False):
263
262
self ._pulse_enable ()
264
263
265
264
def _pulse_enable (self ):
266
- """ Pulses (lo->hi->lo) to send commands. """
265
+ # Pulses (lo->hi->lo) to send commands.
267
266
self .enable .value = False
268
267
# 1microsec pause
269
268
time .sleep (0.0000001 )
0 commit comments