Fork to see if I can get working

Dependencies:   BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated

Fork of xDotBridge_update_test20180823 by Matt Briggs

Revision:
64:46c8819c07cc
Parent:
62:9751a8504c82
--- a/xDotBridge/src/UserInterface.cpp	Tue Mar 14 09:54:04 2017 -0600
+++ b/xDotBridge/src/UserInterface.cpp	Tue Mar 14 11:53:53 2017 -0600
@@ -65,3 +65,42 @@
         return pairBtnLongPress;
     }
 }
+
+LedPatterns::LedPatterns(BaseboardIO *bbio)
+{
+    mBbio = bbio;
+}
+
+void LedPatterns::turnOn()
+{
+    mBbio->ledOn();
+}
+
+void LedPatterns::turnOff()
+{
+    mBbio->ledOff();
+}
+
+void LedPatterns::singleBlink()
+{
+    mBbio->ledOn();
+    wait(0.5);
+    mBbio->ledOff();
+}
+
+void LedPatterns::tripleBlink()
+{
+    singleBlink();
+    wait(0.5);
+    singleBlink();
+    wait(0.5);
+    singleBlink();
+}
+
+void LedPatterns::tenBlinks()
+{
+    for (uint8_t i=0; i<10; i++) {
+        singleBlink();
+        wait(0.5);
+    }
+}