Skip to content

TFT (Display) not working in Hallowing M4 CircuitPython 9.1 #9437

Closed
@dlandfried

Description

@dlandfried

CircuitPython version

Adafruit CircuitPython 8.2.7 on 2023-10-19; Adafruit Hallowing M4 Express with samd51j19

Code/REPL

# SPDX-FileCopyrightText: 2019 Carter Nelson for Adafruit Industries
#
# SPDX-License-Identifier: MIT

import board
import displayio

display = board.DISPLAY

# Setup the file as the bitmap data source
bitmap = displayio.OnDiskBitmap("/purple.bmp")

# Create a TileGrid to hold the bitmap
tile_grid = displayio.TileGrid(bitmap, pixel_shader=bitmap.pixel_shader)

# Create a Group to hold the TileGrid
group = displayio.Group()

# Add the TileGrid to the Group
group.append(tile_grid)

# Add the Group to the Display
display.root_group = group

# Loop forever so you can enjoy your image
while True:
    pass

Behavior

Even with an adjusted bitmap this code does not display anything on the display. I also tried the 'text' version at https://learn.adafruit.com/circuitpython-display-support-using-displayio/text. However, switching to CircuitPython 8.2.7 as suggested at Discord.

Description

I think board.DISPLAY on the Hallowing M4 got remapped to CLK and MOSI in 9.1. This is conjecture based on documentation I have seen. This conflicts with the schematic which uses TFT_CLK and TFT_MOSI.

Additional information

This code works with CircuitPython 8.2.7 and 8x libraries.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions