Displays 4 bit binary count on bar graph display. Demonstrates BusOut usage.

Dependencies:   mbed

Fork of Nightlight3 by Charles Tritt

Revision:
8:2be3e2339203
Parent:
7:52ed5fbb1208
--- a/main.cpp	Wed Nov 01 20:05:22 2017 +0000
+++ b/main.cpp	Fri Nov 03 14:11:19 2017 +0000
@@ -20,8 +20,8 @@
     
     barGraph = 0;  // Start with all bars off.
     while(true) {
+        wait(1.0);
         barGraph = barGraph + 1; // Add one to count.
-        wait(1.0);
         if (barGraph == 15) {
             barGraph = 0;
         }