Javascript wrappers for LSM6DSL Sensor library

Dependencies:   LSM6DSL

Dependents:   ST_SENSOR_JS

Revision:
5:4f29cb91aaef
Parent:
4:0eb0cded8861
Child:
6:97726929e01f
--- a/LSM6DSL_JS.h	Wed Oct 25 13:59:25 2017 +0200
+++ b/LSM6DSL_JS.h	Tue Oct 31 16:21:19 2017 +0100
@@ -61,7 +61,18 @@
 public:
     /* Constructors */
     LSM6DSL_JS(){ printf("calling empty constructor"); }
+    
     LSM6DSL_JS(DevI2C &devI2c);
+    void init(DevI2C &devI2c);
+    LSM6DSL_JS(DevI2C &devI2c, PinName int1_pin, PinName int2_pin);
+    void init(DevI2C &devI2c, PinName int1_pin, PinName int2_pin);
+    LSM6DSL_JS(DevI2C &devI2c, PinName int1_pin, PinName int2_pin, uint8_t address);
+    void init(DevI2C &devI2c, PinName int1_pin, PinName int2_pin, uint8_t address);
+    
+    LSM6DSL_JS(SPI &spi, PinName cs_pin);
+    void init(SPI &spi, PinName cs_pin);
+    LSM6DSL_JS(SPI &spi, PinName cs_pin, PinName int1_pin, PinName int2_pin, int spi_type);
+    void init(SPI &spi, PinName cs_pin, PinName int1_pin, PinName int2_pin, int spi_type);
     
     /* Destructor */
     ~LSM6DSL_JS();