Browse Source

microbit: correct device params for I2C

master
smlng 6 years ago
parent
commit
fddecfcaec
  1. 4
      boards/microbit/include/board.h

4
boards/microbit/include/board.h

@ -68,7 +68,7 @@ extern "C" {
* @brief MMA8653 accelerometer configuration
* @{
*/
#define MMA8653_PARAM_I2C I2C_0,
#define MMA8653_PARAM_I2C I2C_DEV(0)
#define MMA8653_PARAM_ADDR 0x1d
/** @} */
@ -76,7 +76,7 @@ extern "C" {
* @brief MAG3110 magnetometer configuration
* @{
*/
#define MAG3110_PARAM_I2C I2C_0,
#define MAG3110_PARAM_I2C I2C_DEV(0)
#define MAG3110_PARAM_ADDR 0x0e
/** @} */

Loading…
Cancel
Save