Working auto orientation
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <BMA223.hpp>
|
||||
#include "BMA223_defines.h"
|
||||
#include <array>
|
||||
#define BMA223_ADDRESS 0x18<<1
|
||||
|
||||
bool BMA223::detect() {
|
||||
return FRToSI2C::probe(BMA223_ADDRESS);
|
||||
@@ -22,7 +20,8 @@ static const FRToSI2C::I2C_REG i2c_registers[] = { //
|
||||
{ BMA223_ACCD_HBW, 0b00000000, 0 }, //filtered data out
|
||||
{ BMA223_INT_OUT_CTRL, 0b00001010, 0 }, //interrupt active low and OD to get it hi-z
|
||||
{ BMA223_INT_RST_LATCH, 0b10000000, 0 }, //interrupt active low and OD to get it hi-z
|
||||
// { BMA223_OFC_CTRL, 0b00000111, 0 }, //High pass en
|
||||
{ BMA223_INT_EN_0, 0b01000000, 0 }, //Enable orientation
|
||||
{ BMA223_INT_A, 0b00100111, 0 }, //Setup orientation detection
|
||||
|
||||
//
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user