Changing Accelerometer Range using Swift Language
Please guide me how to change the accelerometer using Swift language.
In "DeviceController.swift", I have written the following code
var accelerometerBMI160: MBLAccelerometerBMI160 = (self.device.accelerometer as! MBLAccelerometerBMI160)
accelerometerBMI160.fullScaleRange = MBLAccelerometerBMI160Range16G
But I'm getting the following error "Use of unresolved identifier MBLAccelerometerBMI160Range16G"
Please guide.
This discussion has been closed.
Comments
MBLAccelerometerBoschRange16G
MBLAccelerometerBoschRange.Range16G worked for me instead of MBLAccelerometerBoschRange16G