Read and store X_NUCLEO_IKS01A1 data. Also calculates compass heading.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Dependents: HelloWorld_IKS01A1
Fork of X_NUCLEO_IKS01A1 by
Diff: x_nucleo_iks01a1.h
- Revision:
- 87:f4fa3dad9ec4
- Parent:
- 86:c5e05108d07b
--- a/x_nucleo_iks01a1.h Wed Jun 01 16:58:00 2016 +0200
+++ b/x_nucleo_iks01a1.h Mon Jun 06 10:32:14 2016 +0200
@@ -124,16 +124,6 @@
PinName ff_irq_pin = IKS01A1_PIN_FF);
static X_NUCLEO_IKS01A1* Instance(PinName sda, PinName scl, PinName ff_irq_pin = NC);
- /**
- * @brief Destructor
- */
- ~X_NUCLEO_IKS01A1(){
- //if(dev_i2c!=NULL){ delete dev_i2c; dev_i2c=0; } how to understand if dev_i2c is locally allocated (so it must be deleted) or comes from constructors args?
- if(ht_sensor!=NULL){ delete ht_sensor; ht_sensor=NULL; }
- if(magnetometer!=NULL){ delete magnetometer; magnetometer=NULL; }
- if(pt_sensor!=NULL){ delete pt_sensor; pt_sensor=NULL; }
- }
-
DevI2C *dev_i2c;
HTS221 *ht_sensor;
William Thenaers
