Redbear Nano firmware using Sandroide and showing how to send custom strings and parameters to the Android application
Dependencies: BLE_API MbedJSONValue mbed nRF51822
Fork of BLE_RedBearNano-SAndroidEDevice by
Diff: main.cpp
- Revision:
- 1:ff6ec7837f46
- Parent:
- 0:8d3dd6e411bf
- Child:
- 2:6c45738bba43
diff -r 8d3dd6e411bf -r ff6ec7837f46 main.cpp --- a/main.cpp Mon Nov 28 10:58:38 2016 +0000 +++ b/main.cpp Mon Mar 27 12:04:16 2017 +0000 @@ -52,8 +52,8 @@ uint8_t pinTypes[maxPins]; uint16_t prevValues[maxPins]; -DigitalInOut digitals[] = {P0_0,P0_7,P0_15,P0_19,P0_28,P0_29}; -int mapDigitals[] = { 0,-1,-1,-1,-1,-1,-1, 1,-1,-1,-1,-1,-1,-1,-1, 2,-1,-1,-1, 3,-1,-1,-1,-1,-1,-1,-1,-1, 4, 5,-1}; +DigitalInOut digitals[] = {P0_0,P0_7,P0_8,P0_9,P0_10,P0_11,P0_15,P0_19,P0_28,P0_29}; +int mapDigitals[] = { 0,-1,-1,-1,-1,-1,-1, 1,2,3,4,5,-1,-1,-1, 6,-1,-1,-1, 7,-1,-1,-1,-1,-1,-1,-1,-1, 8, 9,-1}; AnalogIn analogs[] = {P0_1, P0_2, P0_3, P0_4, P0_5, P0_6}; int mapAnalogs[] = {-1, 0, 1, 2, 3, 4, 5,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};