88CircuitPython driver for Adafruit ePaper display breakouts
99* Author(s): Dean Miller
1010"""
11- # pylint: disable=ungrouped-imports
1211
1312import time
1413
3332__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_EPD.git"
3433
3534
36- class Adafruit_EPD : # pylint: disable=too-many-instance-attributes, too-many-public-methods, too-many-arguments
35+ class Adafruit_EPD :
3736 """Base class for EPD displays"""
3837
3938 BLACK = const (0 )
@@ -53,7 +52,7 @@ def __init__(
5352 sramcs_pin : DigitalInOut ,
5453 rst_pin : DigitalInOut ,
5554 busy_pin : DigitalInOut ,
56- ) -> None : # pylint: disable=too-many-arguments
55+ ) -> None :
5756 self ._width = width
5857 self ._height = height
5958
@@ -99,7 +98,7 @@ def __init__(
9998 self ._black_inverted = self ._color_inverted = True
10099 self .hardware_reset ()
101100
102- def display (self ) -> None : # pylint: disable=too-many-branches
101+ def display (self ) -> None :
103102 """show the contents of the display buffer"""
104103 self .power_up ()
105104
@@ -298,15 +297,15 @@ def fill(self, color: int) -> None:
298297 self ._blackframebuf .fill (black_fill )
299298 self ._colorframebuf .fill (red_fill )
300299
301- def rect (self , x : int , y : int , width : int , height : int , color : int ) -> None : # pylint: disable=too-many-arguments
300+ def rect (self , x : int , y : int , width : int , height : int , color : int ) -> None :
302301 """draw a rectangle"""
303302 self ._color_dup ("rect" , (x , y , width , height ), color )
304303
305- def fill_rect (self , x : int , y : int , width : int , height : int , color : int ) -> None : # pylint: disable=too-many-arguments
304+ def fill_rect (self , x : int , y : int , width : int , height : int , color : int ) -> None :
306305 """fill a rectangle with the passed color"""
307306 self ._color_dup ("fill_rect" , (x , y , width , height ), color )
308307
309- def line (self , x_0 : int , y_0 : int , x_1 : int , y_1 : int , color : int ) -> None : # pylint: disable=too-many-arguments
308+ def line (self , x_0 : int , y_0 : int , x_1 : int , y_1 : int , color : int ) -> None :
310309 """Draw a line from (x_0, y_0) to (x_1, y_1) in passed color"""
311310 self ._color_dup ("line" , (x_0 , y_0 , x_1 , y_1 ), color )
312311
0 commit comments