Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 112:661465370a73
- Parent:
- 111:d1994a385ab2
diff -r d1994a385ab2 -r 661465370a73 main.cpp
--- a/main.cpp	Mon Oct 11 01:30:53 2021 +0000
+++ b/main.cpp	Mon Oct 11 14:51:30 2021 +0000
@@ -3,11 +3,12 @@
   File: main.cpp
  
  Demonstrates the use of a for() loop. Lights indivdiual LEDs of a bargraph
- display in sequence, then in reverse order.
+ display in sequence, then in reverse order. Note this version still has a 
+ minor glitch when the bar is at the left end of the display.  
  
  The circuit:
  
-    Bargraph LEDs from pins D3 through D12 to ground via 330 Ohm resistors.
+    Bargraph LEDs from pins D2 through D11 to ground via 330 Ohm resistors.
  
  Created 2006  by David A. Mellis
  Modified 2011  by Tom Igoe
@@ -21,7 +22,7 @@
  
 const int DELAY = 100;; // mS wait time.
  
-BusOut bar_graph(D3,D4,D5,D6,D7,D8,D9,D10,D11,D12);
+BusOut bar_graph(D2,D3,D4,D5,D6,D7,D8,D9,D10,D11);
  
 int main() {