52
52
__version__ = "0.0.0-auto.0"
53
53
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BitmapSaver.git"
54
54
55
- #pylint:disable=line-too-long,broad-except,redefined-outer-name
55
+ #pylint:disable=line-too-long,broad-except,redefined-outer-name,invalid-name
56
56
57
57
def _write_bmp_header (output_file , filesize ):
58
58
output_file .write (bytes ('BM' , 'ascii' ))
@@ -88,6 +88,7 @@ def _rgb565_to_bgr_tuple(color):
88
88
red = (color >> 8 ) & 0x00F8
89
89
return (blue , green , red )
90
90
91
+ #pylint:disable=too-many-locals
91
92
def _write_pixels (output_file , pixel_source , palette ):
92
93
saving_bitmap = isinstance (pixel_source , Bitmap )
93
94
w , h = _rotated_height_and_width (pixel_source )
@@ -111,6 +112,7 @@ def _write_pixels(output_file, pixel_source, palette):
111
112
buffer_index += 1
112
113
output_file .write (row_buffer )
113
114
gc .collect ()
115
+ #pylint:enable=too-many-locals
114
116
115
117
def save_pixels (file_or_filename , pixel_source = board .DISPLAY , palette = None ):
116
118
"""Save pixels to a 24 bit per pixel BMP file.
0 commit comments