Closed caternuson closed 4 years ago
This is currently the simplest load statement:
image, palette = adafruit_imageload.load("omg_cute_kitteh.bmp", bitmap=displayio.Bitmap, palette=displayio.Palette)
Those options for the bitmap and palette parameter probably cover the majority of use cases. Could we make them default? That would then allow for:
bitmap
palette
image, palette = adafruit_imageload.load("omg_cute_kitteh.bmp")
The above statement currently runs without error, but returns NoneTypes.
NoneType
@tannewt Thoughts on this? This feels like one of those things where it's like this for a reason, but I'm just not seeing or understanding it. Thanks :)
I don't see a reason not to support it.
This is currently the simplest load statement:
Those options for the
bitmap
andpalette
parameter probably cover the majority of use cases. Could we make them default? That would then allow for:The above statement currently runs without error, but returns
NoneType
s.