Demo - Mcube MC3672 Quick Start Manuals

Accelerometer driver
Table of Contents

Advertisement

MC3672 Accelerometer Driver

3 DEMO

3.1 DOWNLOAD THE DRIVER FROM GITHUB
To begin reading sensor data, you will need to download the MC3672 Library from the
GitHub repository. Do this by visiting the GitHub repository and manually downloading or
simply click this button the attached URL to download the zip file.
https://github.com/mcubemems/Accelerometer_MC36XX
Rename the uncompressed folder Accelerometer_MC36XX and check that the
Accelerometer_MC36XX folder consisting of MC36XX.cpp and MC36XX.h
If you need the sensor running on SPI, please configure the bus as SPI in the
MC36XX.h shown as below. Otherwise, the default is I2C bus.
//#define MC36XX_CFG_BUS_I2C
#define MC36XX_CFG_BUS_SPI
SPI could support 8MHz speed if high speed mode is enabled as below.
#define SPI_HS
mCube Proprietary.
© 2018 mCube Inc. All rights reserved.
APS-045-0017v1.2
Quick Start Guide and Demo
8 / 19

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Mcube MC3672

Table of Contents