Firmware for the mbed in the BlueSync Sensor platform. Intended to communicate with a BlueGiga BLE112 Bluetooth LE module over UART.
Dependencies: TimerCapture mbed
Diff: main.cpp
- Revision:
- 4:778626dfcc92
- Parent:
- 3:54fef6ac433b
- Child:
- 5:fd4773c12f93
--- a/main.cpp Sat May 30 04:34:45 2015 +0000 +++ b/main.cpp Sat May 30 05:27:26 2015 +0000 @@ -73,10 +73,14 @@ blankOutLeds(); bleTimeStampRecv = 1; intByteArray bitArray; - for (int i = 3; i >= 0; i--) { + printf("Trying to get offset\r\n"); + for (int i = 0; i < 4; i++) { + printf("Reading byte[%d]\r\n", i); bitArray.byte[i] = ble112.getc(); } printf("Got offset %d\r\n", bitArray.signed_integer); + + LPC_TIM2->TC += bitArray.signed_integer; }