Charles Tritt / Mbed OS 21_ForShift_v5
Revision:
112:661465370a73
Parent:
111:d1994a385ab2
--- 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() {