Sony's LANC camera control protocol project.
Dependencies: aconno_LANC aconno_bsp aconno_SEGGER_RTT
Diff: main.cpp
- Revision:
- 7:5a9d22d7fe00
- Parent:
- 6:8cf24e946b0b
diff -r 8cf24e946b0b -r 5a9d22d7fe00 main.cpp --- a/main.cpp Wed Nov 01 18:05:20 2017 +0000 +++ b/main.cpp Fri Nov 03 14:03:14 2017 +0000 @@ -30,7 +30,7 @@ #define LED_OFF (1) #define MSD_SIZE (29) /* Manufacturer Specific Data lenght (in B) */ -uint8_t MSD[MSD_SIZE] = {0x59, 0x00, 0xDD, 0x4E, 0xCD, 0xC5, 0x5E, 0xA3, 0x43, 0x67, 0x8B, 0x84, 0x94, 0xFF, 0xBA, 0xD9, 0x29, 0xC6}; +uint8_t MSD[MSD_SIZE] = {0x59, 0x00, 0xDD, 0x44, 0xCD, 0xC5, 0x5E, 0xA3, 0x43, 0x67, 0x8B, 0x84, 0x94, 0xFF, 0xBA, 0xD9, 0x29, 0xC5}; uint8_t myMacAddress[6] = {}; ACKService<1> *ackServicePtr; BLE &ble = BLE::Instance(); @@ -225,7 +225,8 @@ int main(void){ - alive = 0; + alive = LED_ON; + connectedLED = LED_OFF; ble.init(bleInitComplete); while (ble.hasInitialized() == false) { /* spin loop */ } @@ -235,7 +236,7 @@ button.fall(i2sReady); sendCommand(zoomCmdAddr, zoomInAddr); - + while(1){ ble.waitForEvent(); }