
In this tutorial we will see how to display the letter ‘A’ on the MAX7219 display with the ESP32 card.
Test plate
Connecting wires
To perform the assembly, we connect:
the VCC pin of the display to the 3.3V pin of the ESP32
the GND pin of the display to the GND pin of the ESP32
pin CS of the display to pin D5 of the ESP32
the DIN pin of the display to pin D2 of the ESP32
the CLK pin of the display to pin D4 of the ESP32
Here is the program which displays the leeter ‘A’ on the MAX7219 display.
Note: it import the library max7219.py.
1 2 3 4 5 6 7 |
import max7219 from machine import Pin, SPI spi = SPI(1, baudrate=10000000, polarity=1, phase=0, sck=Pin(4), mosi=Pin(2)) ss = Pin(5, Pin.OUT) display = max7219.Matrix8x8(spi, ss, 1) display.text('A',1,0,1) #Display letter 'A' display.show() |