Load The Demo - Mcube MC3479 Quick Start Manual And Demo

Table of Contents

Advertisement

MC3479 3-Axis Accelerometer

3.2 LOAD THE DEMO

Open File->Examples->MC34X9-> MC34X9_demo and upload to your Arduino while it is wired
to the sensor.
If you need the sensor running on SPI, please configure the bus as SPI in the
MC34X9_demo.ino shown as below. Otherwise, the default is I2C bus.
/*** bSpi: I2C/SPI bus selection. SPI: 0, I2C: 1 ***/
const uint8_t bSpi = 1;
Setup I2C interface as 2.1 will get I2C address 0x4C.
Setup SPI interface as 2.2 will get SPI select pin 10.
/* Chip Select & Address */
uint8_t chipSelect = 0;
const uint8_t SPIChipSelectPin = 10; //
const uint8_t I2CAddress = 0x4c; //
mCube Proprietary.
© 2020 mCube Inc. All rights reserved.
EV3479A Quick Start Guide and Demo
SPI
I2C
address
APS-045-0034v1.0
chipSelectPin
9 / 20

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ev3479a

Table of Contents