Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Visual Output > Sequencing Multiple LEDs: Creating a Bar Graph

recipe 7.6. Sequencing Multiple LEDs: Creating a Bar Graph

7.6.1. Problem

You want an LED bar graph that lights LEDs in proportion to a value in your sketch or a value read from a sensor.

7.6.2. Solution

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint