O'Reilly logo

Raspberry Pi LED Blueprints by Agus Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing an LED dot matrix driver

Richard Hull and his team have already built an LED dot matrix driver based on IC MAX7219. You can download it from https://github.com/rm-hull/max7219. This library also supports cascading several dot matrix display modules. This means that we can cascade several LED dot matrix modules by connecting DOUT to DIN among these modules. You will learn how to cascade LED dot matrix modules in the last section of this chapter.

The library needs the SPI library to run the LED dot matrix display module. In the next section, I'm going to explain how to activate SPI on a Raspberry Pi board.

Enabling Raspberry Pi SPI

By default, Raspberry Pi disables the SPI port, so if we want to access the SPI port, we must activate it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required