Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API circular_buffer mbed nRF51822
Fork of BLENano_SimpleControls by
Diff: main.cpp
- Revision:
- 2:ddf1f6325a37
- Parent:
- 1:81a97eb70d3d
- Child:
- 3:6c83be282aac
--- a/main.cpp Fri Oct 31 14:44:32 2014 +0000
+++ b/main.cpp Thu Mar 19 03:19:23 2015 +0000
@@ -19,8 +19,6 @@
#include "mbed.h"
#include "BLEDevice.h"
-#include "Servo.h"
-
#define BLE_UUID_TXRX_SERVICE 0x0000 /**< The UUID of the Nordic UART Service. */
#define BLE_UUID_TX_CHARACTERISTIC 0x0002 /**< The UUID of the TX Characteristic. */
@@ -31,9 +29,10 @@
#define DIGITAL_OUT_PIN P0_9 //TXD
#define DIGITAL_IN_PIN P0_10 //CTS
#define PWM_PIN P0_11 //RXD
-#define SERVO_PIN P0_8 //RTS
#define ANALOG_IN_PIN P0_4 //P04
+
+
BLEDevice ble;
DigitalOut LED_SET(DIGITAL_OUT_PIN);
@@ -200,7 +199,7 @@
ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED);
ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);
ble.accumulateAdvertisingPayload(GapAdvertisingData::SHORTENED_LOCAL_NAME,
- (const uint8_t *)"Biscuit", sizeof("Biscuit") - 1);
+ (const uint8_t *)"Serqet", sizeof("Serqet") - 1);
ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS,
(const uint8_t *)uart_base_uuid_rev, sizeof(uart_base_uuid));
// 100ms; in multiples of 0.625ms.
