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.
Diff: sources/main.cpp
- Revision:
- 0:f8c8c0f95d6b
diff -r 000000000000 -r f8c8c0f95d6b sources/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/main.cpp Fri Mar 17 16:10:08 2017 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" +#include "ble/BLE.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. */ +#define BLE_UUIDS_RX_CHARACTERISTIC 0x0003 /**< The UUID of the RX Characteristic. */ + +#define TXRX_BUF_LEN 20 +/* +define user IO ports here +*/ + +//SPI +#define CS P0_7 //chipselect +#define MOSI P0_9 //Master Out Slave In +#define MISO P0_11 //Master In Slave Out +#define SCK P0_8 //Clock +//Interrupts +#define INT1 P0_15 //interrupt for ADXL345 +//additional IO +#define ON_SW P0_28 //ON/OFF switch +#define BEPB P0_29 //Enable/disable bluetooth push button + +/* +end user IO port definition +*/ + + +BLE ble; \ No newline at end of file