Example of using the mDot UDK with the X-NUCLEO-IKS01A2 board
Dependencies: MTS_X_NUCLEO_IKS01A2 libmDot-mbed5
Fork of mDot-IKS01A1 by
Diff: main.cpp
- Revision:
- 2:d0873bb1255f
- Parent:
- 0:9e88a9018fc0
- Child:
- 3:d34798ffcaf8
diff -r 14ddb9556b78 -r d0873bb1255f main.cpp --- a/main.cpp Fri Dec 09 17:26:16 2016 +0000 +++ b/main.cpp Fri Dec 09 20:51:48 2016 +0000 @@ -27,7 +27,7 @@ /* Instantiate the expansion board */ - X_NUCLEO_IKS01A1 *mems_expansion_board = X_NUCLEO_IKS01A1::Instance(D14, D15); + X_NUCLEO_IKS01A1 *mems_expansion_board = X_NUCLEO_IKS01A1::Instance(I2C_SDA, I2C_SCL, PC_1); /* Retrieve the composing elements of the expansion board */ GyroSensor *gyroscope = mems_expansion_board->GetGyroscope();