1

Dependencies:   X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed

Revision:
2:78df92a365c2
Parent:
1:80c1daf19aa4
Child:
3:4bca7f8f731a
diff -r 80c1daf19aa4 -r 78df92a365c2 board/board.cpp
--- a/board/board.cpp	Fri Aug 26 20:51:07 2016 +0000
+++ b/board/board.cpp	Sat Aug 27 04:03:02 2016 +0000
@@ -15,18 +15,21 @@
 #include "mbed.h"
 #include "board.h"
 
-MoteVersion_t BoardGetVersion( void );
-
 DigitalIn I2cInterrupt( PB_4 );
 I2C I2c(I2C_SDA, I2C_SCL);
 
 DigitalOut Pc7( PC_7 );
 DigitalIn Pc1( PC_1 );
 
-DigitalIn UsrButton(PC_13 );
+DigitalIn UsrButton( PC_13 );
 
-#define AIN_VREF            3.3     // STM32 internal refernce
-#define AIN_VBAT_DIV        2       // Resistor divider
+#ifdef USE_IKS01A1_SENSOR
+X_NUCLEO_IKS01A1 *mems_expansion_board = X_NUCLEO_IKS01A1::Instance();
+MotionSensor *accelerometer = mems_expansion_board->GetAccelerometer();
+HumiditySensor *humidity_sensor = mems_expansion_board->ht_sensor;;
+PressureSensor *pressure_sensor = mems_expansion_board->pt_sensor;
+TempSensor *temp_sensor1 = mems_expansion_board->ht_sensor;
+#endif
 
 SX1276MB1xAS Radio( NULL );