Charles Tritt / Mbed OS 21_ForShift_v5

Files at this revision

API Documentation at this revision

Comitter:
CSTritt
Date:
Mon Oct 11 14:51:30 2021 +0000
Parent:
111:d1994a385ab2
Commit message:
Glitch noticed in testing. Not yet fixed.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
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() {