Skip to content

Incorrect (skewed?) image displayed by image recorded by adafruit_imageload.load() #88

Closed
@KavyanshKhaitan2

Description

@KavyanshKhaitan2

Expected Behavior

Python logo displays correctly.
Python logo in a ZIP archive
python logo

Behavior shown

Skewed python logo.
image

Please feel free to ask me any further questions!

Code

import board

import displayio
import digitalio
import adafruit_imageload # type: ignore

# Device: M5Stack Cardputer

display = board.DISPLAY
bitmap, pallete = adafruit_imageload.load('/untitled_app.png')

image = displayio.TileGrid(bitmap, pixel_shader=pallete, x=5, y=5)

root_group = displayio.Group()
display.root_group = root_group
root_group.append(image)

G0_btn = digitalio.DigitalInOut(board.BUTTON)
G0_btn.direction = digitalio.Direction.INPUT


# Forever loop so we can see what happened :D
while 1:
    pass

P.S. Original code in old version of this message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions