Add support for BMA425 acceleration sensor. (#440)
* Add support for BMA425 acceleration sensor.
This commit is contained in:
parent
e90e8c7426
commit
c6dca25b9f
10 changed files with 603 additions and 29 deletions
|
|
@ -34,3 +34,10 @@ bool MotionController::ShouldWakeUp(bool isSleeping) {
|
|||
void MotionController::IsSensorOk(bool isOk) {
|
||||
isSensorOk = isOk;
|
||||
}
|
||||
void MotionController::Init(Pinetime::Drivers::Bma421::DeviceTypes types) {
|
||||
switch(types){
|
||||
case Drivers::Bma421::DeviceTypes::BMA421: this->deviceType = DeviceTypes::BMA421; break;
|
||||
case Drivers::Bma421::DeviceTypes::BMA425: this->deviceType = DeviceTypes::BMA425; break;
|
||||
default: this->deviceType = DeviceTypes::Unknown; break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue