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: ADXL362_v3 BLE_API mbed nRF51822
Fork of BLENano_SimpleTemplate_adxl362_170813 by
Revision 7:2d9b5491b2d3, committed 2017-08-13
- Comitter:
- Jun_adi
- Date:
- Sun Aug 13 05:16:22 2017 +0000
- Parent:
- 6:29ffd540b089
- Child:
- 8:18b02ffb6330
- Commit message:
- Update SPI pin setting
Changed in this revision
| ADXL362.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ADXL362.lib Thu Aug 03 05:19:36 2017 +0000 +++ b/ADXL362.lib Sun Aug 13 05:16:22 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/Jun_adi/code/ADXL362/#828314a3d09b +https://developer.mbed.org/users/Jun_adi/code/ADXL362/#3af69afe5457
--- a/main.cpp Thu Aug 03 05:19:36 2017 +0000 +++ b/main.cpp Sun Aug 13 05:16:22 2017 +0000 @@ -40,12 +40,12 @@ //------------------------------------------------------------ #define TXRX_BUF_LEN 20 //max 20[byte] #define DEVICE_LOCAL_NAME "ADXL362" //Change Name -#define ADVERTISING_INTERVAL 16 //16 * 0.625[ms] = 10[ms] -#define TICKER_TIME 10000 //10000[us] = 10[ms] +#define ADVERTISING_INTERVAL 160 //16 * 0.625[ms] = 100[ms] +#define TICKER_TIME 200000 //200000[us] = 200[ms] #define DIGITAL_OUT_PIN P0_9 //#define ANALOG_IN_PIN P0_4 -//Set Pin +//Set SPI Pin #define CS P0_10 #define MOSI P0_9 #define MISO P0_11 @@ -59,7 +59,7 @@ DigitalOut LED_SET(DIGITAL_OUT_PIN); //AnalogIn ANALOG(ANALOG_IN_PIN); -//Set pin at header file.(see ADXL362.h line185) +//SPI pin setting and change header file.(see ADXL362.h line185) ADXL362 adxl362(CS, MOSI, MISO, SCK); //------------------------------------------------------------
