Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You want an LED bar graph that lights LEDs in proportion to a value in your sketch or a value read from a sensor.
You can connect the LEDs as shown in Figure 7-2 (using additional pins if you want more LEDs). Figure 7-5 shows six LEDs connected on consecutive pins.