6 years ago.

Using an 32x32 LED matrix with FRDM K64F

Has anyone used an LED matrix such as: https://www.adafruit.com/product/607 with the K64F board. We are having some trouble with the wiring and pin setup.

Any pointers would be appreciated! Thanks!

Question relating to:

The Freedom-K64F is an ultra-low-cost development platform for Kinetis K64, K63, and K24 MCUs.

1 Answer

6 years ago.

Hi there,

I don't have access to that specific LED matrix board. However, in terms of wiring/pins setup I would take a look at this port of the Adafruit RGB-matrix-Panel library for Mbed: https://os.mbed.com/teams/EIC_mbed/code/RGB_matrix_Panel/

This is a port of Adafruit's Arduino library: https://github.com/adafruit/RGB-matrix-Panel/blob/master/RGBmatrixPanel.cpp

I would specifically look at the constructor used in the Mbed port of the RBGmatrixPanel library:

// Constructor for 32x32 panel:
RGBmatrixPanel::RGBmatrixPanel(PinName r1,PinName r2,PinName g1,PinName g2,PinName b1,PinName b2,PinName a,PinName b,PinName c,PinName d,PinName sclk,PinName latch,PinName oe,bool dbuf)
    :Adafruit_GFX(32, 32),
     _dataBus(r1,g1,b1,r2,g2,b2),
     _rowBus(a,b,c),
     _d(d),// Init 32x32-specific elements:
     _sclk(sclk),
     _latch(latch),
     _oe(oe)
{
    init(16,dbuf);
}

This code should help you decipher how to wire the panel to the K64F pins. A list of K64F pin names can be found here: https://os.mbed.com/teams/Freescale/wiki/frdm-k64f-pinnames

A pinout diagram for the K64F can be found here: https://os.mbed.com/platforms/FRDM-K64F/#board-pinout

Also, Adafruit has a great tutorial for setting up this LED matrix here: https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/new-wiring (you'll want to pay attention to this diagram: https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/new-wiring#step-4 ).

Please let me know if you have any questions!

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!