I2C Logic Pins
SCL - I2C clock pin, connect to your microcontroller's I2C clock line. This pin is level shifted so you
can use 3-5V logic, and there's a 10K pullup on this pin.
SDA - I2C data pin, connect to your microcontroller's I2C data line. This pin is level shifted so you
can use 3-5V logic, and there's a 10K pullup on this pin.
STEMMA QT (https://adafru.it/Ft4) - These connectors allow you to make I2C connections to dev
boards with STEMMA QT connectors or to other things with various associated
accessories (https://adafru.it/Ft6)
DO/AD1 Jumper - I2C Address pin. Pulling this pin high or bridging the solder jumper on the back
will change the I2C address from 0x1C to 0x1E
SPI Logic pins:
All pins going into the breakout have level shifting circuitry to make them 3-5V logic level safe. Use
whatever logic level is on Vin!
SCL - This is
also
the SPI Clock pin, it's an input to the chip
SDA - this is
also
the Serial Data In / Microcontroller Out Sensor In pin, for data sent from your
processor to the LIS3MDL
DO - this is the Serial Data Out / Microcontroller In Sensor Out pin, for data sent from the LIS3MDL to
your processor.
CS - this is the Chip Select pin, drop it low to start an SPI transaction. Its an input to the chip
If you want to connect multiple LIS3MDL's to one microcontroller, have them share the SDA, SDO and
SCL pins. Then assign each one a unique CS pin.
Other Pins
INT -This is the interrupt pin. You can setup the LIS3MDL to pull this low when certain conditions are
met such as a value exceeding a threshold. Consult the datasheet (https://adafru.it/IbR) for usage
DRDY - The data ready pin. When measurement data is available the sensor will pull this pin low