STILL DEBUGGING
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Diff: x_nucleo_iks01a1.h
- Revision:
- 72:79a2a64c9b2f
- Parent:
- 71:78164ec41ad2
- Child:
- 76:88d48e64bac2
--- a/x_nucleo_iks01a1.h Mon Aug 31 12:07:22 2015 +0200 +++ b/x_nucleo_iks01a1.h Thu Sep 03 10:46:55 2015 +0200 @@ -81,7 +81,7 @@ class X_NUCLEO_IKS01A1 { protected: - X_NUCLEO_IKS01A1(DevI2C *ext_i2c); + X_NUCLEO_IKS01A1(DevI2C *ext_i2c, PinName ff_irq_pin); /** * @brief Initialize the singleton's sensors to default settings @@ -115,7 +115,9 @@ bool Init_LSM6DS3(void); public: - static X_NUCLEO_IKS01A1* Instance(DevI2C *ext_i2c = NULL); + static X_NUCLEO_IKS01A1* Instance(DevI2C *ext_i2c = NULL, + PinName ff_irq_pin = IKS01A1_PIN_FF); + static X_NUCLEO_IKS01A1* Instance(PinName sda, PinName scl, PinName ff_irq_pin = NC); DevI2C *dev_i2c;