To hook an LED matrix to the ItsyBitsy M4, make the connections on the left. Remember that for a 16-line matrix, connect 4 GND wires and address wires A, B, and C. For a 32-line matrix, connect 3 GND wires and address wires A, B, C, and D.
Use the following block of code to initialize a 64x32 matrix. Remember to connect all 4 address pins: A, B, C, and D.
displayio.release_displays() matrix = rgbmatrix.RGBMatrix( width=64, bit_depth=4, rgb_pins=[board.MOSI, board.SCK, board.A5, board.A4, board.A0, board.A1], addr_pins=[board.D5, board.D7, board.D9, board.D10], clock_pin=board.D13, latch_pin=board.D12, output_enable_pin=board.D11) display = framebufferio.FramebufferDisplay(matrix)
Use the following block of code to initialize a 32x16 matrix. Remember to connect just 3 address pins: A, B, and C. Hook a fourth GND wire instead of A3.
displayio.release_displays() matrix = rgbmatrix.RGBMatrix( width=32, bit_depth=4, rgb_pins=[board.MOSI, board.SCK, board.A5, board.A4, board.A0, board.A1], addr_pins=[board.D5, board.D7, board.D9], clock_pin=board.D13, latch_pin=board.D12, output_enable_pin=board.D11) display = framebufferio.FramebufferDisplay(matrix)
Text editor powered by tinymce.