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:a34a2c4cc2cc
- Parent:
- 111:459fa5199128
diff -r 459fa5199128 -r a34a2c4cc2cc main.cpp --- a/main.cpp Mon Oct 11 01:42:06 2021 +0000 +++ b/main.cpp Mon Oct 11 14:56:15 2021 +0000 @@ -6,6 +6,8 @@ display in sequence, then in reverse order. This version demonstrates the use of the combination assignment operators. In general it is probably better to use the shift operators. This is the "Nightrider" effect. + + This version has a minor glitch (blink) when bar is at left end of bar. The circuit: @@ -14,7 +16,7 @@ Created 2006 by David A. Mellis Modified 2011 by Tom Igoe Modified for Nucleo / mbed 12 Aug 2017 by Sheila Ross - Modified by C. S. Tritt 9/21/17 and 10/10/21 (v. 1.0, untested) + Modified by C. S. Tritt 9/21/17 and 10/10/21 (v. 1.1) This example code is in the public domain. */ @@ -23,7 +25,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() {