Simple VL6180x demo for VL6180x Explorer shield with Nucleo F401 adapted from SparkFun example.

Dependents:   VL6180X VL6180X_Explorer VL6180X_Explorer VL6180X ... more

Revision:
2:31313127c530
Parent:
0:4a5d4b4a40c4
Child:
3:4a20f2102acf
--- a/VL6180x.cpp	Sun May 10 16:59:09 2015 +0000
+++ b/VL6180x.cpp	Sun May 10 19:09:30 2015 +0000
@@ -29,10 +29,8 @@
 
 #include "VL6180x.h"
 
-VL6180x::VL6180x(PinName sda, PinName scl, uint8_t addr) : m_i2c(sda, scl), m_addr(addr) {
-
-}
-uint8_t VL6180x::VL6180xInit(void){
+VL6180x::VL6180x(PinName sda, PinName scl, uint8_t addr) : m_i2c(sda, scl), m_addr(addr) {}
+int VL6180x::VL6180xInit(void){
   uint8_t data; //for temp data storage
 
   data = VL6180x_getRegister(VL6180X_SYSTEM_FRESH_OUT_OF_RESET);