Cast tube base station
Dependencies: EALib USBDevice mbed
Diff: main.cpp
- Revision:
- 1:240b94a8d002
- Parent:
- 0:e559b5160d84
--- a/main.cpp Wed Dec 16 19:49:47 2015 +0000 +++ b/main.cpp Tue Jan 05 16:46:47 2016 +0000 @@ -723,9 +723,14 @@ displayDebugMsg("Initialising USB"); static USBHID hid_object(64, 64); // USB Initialize + + displayDebugMsg("USB initialised"); + hid = &hid_object; send_report.length = 64; + displayDebugMsg("Starting tickers"); + lossOfSignalTimer.attach(&checkForLossOfSignal, 2.0); // check for loss of signal every 2 seconds updateLCD.attach(&updateDisplay, 1.0); @@ -738,6 +743,8 @@ ledInit(); // turn off all leds as initialisation complete + displayDebugMsg("while (1)"); + while (1) { if (xbeeIsUp)