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.
Dependents: Check_VL6180XA1_ToF
Fork of X_NUCLEO_6180XA1 by
Diff: x_nucleo_6180xa1.h
- Revision:
- 12:71d589e6fd2c
- Parent:
- 10:4954b09b72d8
- Child:
- 13:6736a00a0aa9
diff -r 88541229403e -r 71d589e6fd2c x_nucleo_6180xa1.h
--- a/x_nucleo_6180xa1.h Tue Oct 06 09:43:25 2015 +0200
+++ b/x_nucleo_6180xa1.h Tue Oct 13 14:22:45 2015 +0200
@@ -47,7 +47,7 @@
#include "STMPE1600_class.h"
#include "DevI2C.h"
-/** New device addresses */
+/** New device addresses */ //FIXME sistemare i nuovi indirizzi da assegnare ai sensori
#define NEW_SENSOR_TOP_ADDRESS 0x10
//#define NEW_SENSOR_LEFT_ADDRESS 0x33
//#define NEW_SENSOR_BOTTOM_ADDRESS 0x34
@@ -61,7 +61,7 @@
X_NUCLEO_6180XA1(DevI2C *ext_i2c) : dev_i2c(ext_i2c)
{
gpio0_top=new STMPE1600DigiOut(*dev_i2c, GPIO_12);
- sensor_top=new VL6180X(*dev_i2c, *gpio0_top);
+ sensor_top=new VL6180X(*dev_i2c, *gpio0_top, PB_0);
}
~X_NUCLEO_6180XA1()
@@ -76,6 +76,7 @@
STMPE1600DigiOut *gpio0_top;
VL6180X *sensor_top;
+ //pin gpio1: bottom=PA4, left=D13, right=PA10
//VL6180X *vl6180x_left;
//VL6180X *vl6180x_bottom;
//VL6180X *vl6180x_right;
@@ -83,7 +84,7 @@
static X_NUCLEO_6180XA1 *Instance(DevI2C *ext_i2c);
- int InitBoard(); // posso ritornare il numero dei dispositivi attivi
+ int InitBoard(); // FIXME posso ritornare il numero dei dispositivi attivi
private:
static X_NUCLEO_6180XA1 *_instance;
