Interfacing a MAX7219/7221-based 7-segment 8-digit display
MAX7219/7221 are 7-segment 8-digit driver ICs that use the serial interface. We can find their documentation at the following web pages:
- https://www.maximintegrated.com/en/products/power/display-power-control/MAX7219.html
- https://datasheets.maximintegrated.com/en/ds/MAX7219-MAX7221.pdf
Following is the photograph of a MAX7219-based 7-segment 8-digit LED display:
Figure 11.11 – 7-segment 8-digit display with pins
We can see all the pins clearly in Figure 11.11. Connect VCC to the 3V pin of the Micro:bit and GND to the ground. Connect DIN and CLK to pins 15 and 13 of the Micro:bit, respectively. Finally, connect CS to pin 0. We can use any digital I/O pin of the Micro:bit. I have written the demonstration programs assuming that pin 0 is connected to CS. If you decide to change the pin, please make the appropriate changes to the program.
I have referred to the library at https...