3333
3434class _SSD1306 :
3535 """Base class for SSD1306 display driver"""
36+ #pylint: disable-msg=too-many-arguments
3637 def __init__ (self , framebuffer , width , height , external_vcc , reset ):
3738 self .framebuf = framebuffer
3839 self .width = width
@@ -78,7 +79,7 @@ def init_display(self):
7879 self .show ()
7980
8081 def poweroff (self ):
81- """Turn the device Power off """
82+ """Turn off the display (nothing visible) """
8283 self .write_cmd (SET_DISP | 0x00 )
8384
8485 def contrast (self , contrast ):
@@ -87,7 +88,7 @@ def contrast(self, contrast):
8788 self .write_cmd (contrast )
8889
8990 def invert (self , invert ):
90- """Invert the pixels on the display"""
91+ """Invert all pixels on the display"""
9192 self .write_cmd (SET_NORM_INV | (invert & 1 ))
9293
9394 def write_framebuf (self ):
@@ -99,6 +100,7 @@ def write_cmd(self, cmd):
99100 raise NotImplementedError
100101
101102 def poweron (self ):
103+ "Reset device and turn on the display."
102104 if self .reset_pin :
103105 self .reset_pin .value = 1
104106 time .sleep (0.001 )
@@ -125,7 +127,7 @@ def show(self):
125127 self .write_framebuf ()
126128
127129 def fill (self , value ):
128- """Fill the display on or off """
130+ """Fill the display with all ones or zeros. """
129131 self .framebuf .fill (value )
130132
131133 def pixel (self , xpos , ypos , value ):
0 commit comments