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: vl53l0x_api libxDot-mbed5
Revision 2:8ac50bd2c7a1, committed 2017-04-21
- Comitter:
- andcor02
- Date:
- Fri Apr 21 11:22:11 2017 +0000
- Parent:
- 1:2e2199fe8ccc
- Child:
- 3:83ec4984a7af
- Commit message:
- for dot
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libxDot-mbed5.lib Fri Apr 21 11:22:11 2017 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/MultiTech/code/libxDot-mbed5/#aff2c05aacce
--- a/main.cpp Tue Aug 23 05:19:55 2016 +0000
+++ b/main.cpp Fri Apr 21 11:22:11 2017 +0000
@@ -3,7 +3,8 @@
#include "vl53l0x_platform.h"
#include "vl53l0x_i2c_platform.h"
-Serial pc(SERIAL_TX, SERIAL_RX);
+Serial pc(USBTX, USBRX);
+DigitalOut led(LED1);
void print_pal_error(VL53L0X_Error Status){
char buf[VL53L0X_MAX_STRING_LENGTH];
@@ -197,7 +198,7 @@
if(Status == VL53L0X_ERROR_NONE)
{
uint32_t measurement;
- uint32_t no_of_measurements = 32;
+ uint32_t no_of_measurements = 6000;
uint16_t* pResults = (uint16_t*)malloc(sizeof(uint16_t) * no_of_measurements);
@@ -212,7 +213,8 @@
*(pResults + measurement) = pRangingMeasurementData->RangeMilliMeter;
printf("In loop measurement %lu: %d\n", measurement, pRangingMeasurementData->RangeMilliMeter);
-
+ wait(1);
+ led=!led;
// Clear the interrupt
VL53L0X_ClearInterruptMask(pMyDevice, VL53L0X_REG_SYSTEM_INTERRUPT_GPIO_NEW_SAMPLE_READY);
VL53L0X_PollingDelay(pMyDevice);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Fri Apr 21 11:22:11 2017 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#a6f3fd1a60d5df59246d7caf3f108c4d34e1808e
--- a/mbed.bld Tue Aug 23 05:19:55 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/b0220dba8be7 \ No newline at end of file