Skip to content

Provide default behavior for bitmap and palette parameters? #36

Closed
@caternuson

Description

@caternuson

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:

image, palette = adafruit_imageload.load("omg_cute_kitteh.bmp")

The above statement currently runs without error, but returns NoneTypes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions