Skip to content

rgbmatrix.RGBMatrix with bit_depth=0 puts board in to bad state #3650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aocole opened this issue Nov 6, 2020 · 0 comments · Fixed by #3661
Closed

rgbmatrix.RGBMatrix with bit_depth=0 puts board in to bad state #3650

aocole opened this issue Nov 6, 2020 · 0 comments · Fixed by #3661
Assignees
Milestone

Comments

@aocole
Copy link

aocole commented Nov 6, 2020

With the below code on the CIRCUITPY drive, you can put the board in to a bad state where the disk won't mount and the tty device doesn't show up, even with the board unplugged from the matrix. Tested with adafruit-circuitpython-matrixportal_m4-en_US-6.0.0-rc.1.uf2

import board
import displayio
import framebufferio
import rgbmatrix

displayio.release_displays()

matrix = rgbmatrix.RGBMatrix(
    width=64, bit_depth=0,
    rgb_pins=[
        board.MTX_R1,
        board.MTX_G1,
        board.MTX_B1,
        board.MTX_R2,
        board.MTX_G2,
        board.MTX_B2
    ],
    addr_pins=[
        board.MTX_ADDRA,
        board.MTX_ADDRB,
        board.MTX_ADDRC,
        board.MTX_ADDRD
    ],
    clock_pin=board.MTX_CLK,
    latch_pin=board.MTX_LAT,
    output_enable_pin=board.MTX_OE
)
display = framebufferio.FramebufferDisplay(matrix, auto_refresh=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants