@user81779, take a look at conversation about Driving LED matrix with shift registers such as 74HC595. There I build up the code for connecting a nxm LED matrix of the type you mention to Espruino.
@allObjects started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@user81779, take a look at conversation about Driving LED matrix with shift registers such as 74HC595. There I build up the code for connecting a nxm LED matrix of the type you mention to Espruino.