Skip to content

Commit 9aa60f5

Browse files
committed
Set bitmap and palette to have default values
1 parent e23dfde commit 9aa60f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

adafruit_imageload/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
2828
* Author(s): Scott Shawcroft
2929
3030
"""
31+
import displayio
3132
# pylint: disable=import-outside-toplevel
3233

3334
__version__ = "0.0.0-auto.0"
3435
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad.git"
3536

3637

37-
def load(filename, *, bitmap=None, palette=None):
38+
def load(filename, *, bitmap=displayio.Bitmap, palette=displayio.Palette):
3839
"""Load pixel values (indices or colors) into a bitmap and colors into a palette.
3940
4041
bitmap is the desired type. It must take width, height and color_depth in the constructor. It

0 commit comments

Comments
 (0)