Now you're going to use the ultrasonic sensor to create a (fairly) accurate distance display. You are going to use the MAX7219 LED driver IC used back in Chapter 7 to display the distance measured. Instead of a dot matrix display, however, you're going to use what the MAX7219 was designed for, a set of 7-segment LED displays.
100µF Electrolytic Capacitor
2 × 100 ohm Resistor
10K ohm Resistor
5 × 7-Segment LED displays (Common Cathode)
MAX7219 LED Driver ...