entire project
Revision 0:f8c8c0f95d6b, committed 2017-03-17
- Comitter:
- didierlauwerys
- Date:
- Fri Mar 17 16:10:08 2017 +0000
- Commit message:
- created project;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BLE_API.lib Fri Mar 17 16:10:08 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#bfc5b9b6ecf5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Mar 17 16:10:08 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c \ No newline at end of file
--- /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