Datasheet
Pi 3V3 to sensor Vin
Pi GND to sensor GND
Pi SCL to sensor SCL
Pi SDA to sensor SDA
And an example on the Raspberry Pi 3 Model B wired with SPI:
Pi 3V3 to sensor Vin
Pi GND to sensor GND
Pi MOSI to sensor SDA
Pi MISO to sensor SA0
Pi SCLK to sensor SCL
Pi #5 to sensor CS (or use any other free GPIO
pin)
CircuitPython Installation of L3GD20 Library
You'll need to install the Adafruit CircuitPython L3GD20 (https://adafru.it/CSq) library on your CircuitPython board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/uap). Our CircuitPython starter guide has a great
page on how to install the library bundle (https://adafru.it/ABU).
For non-express boards like the Trinket M0 or Gemma M0, you'll need to manually install the necessary libraries from
the bundle:
adafruit_l3gd20.mpy
adafruit_bus_device
Before continuing make sure your board's lib folder or root filesystem has the adafruit_l3gd20.mpy, and
adafruit_bus_device files and folders copied over.
Next connect to the board's serial REPL (https://adafru.it/Awz) so you are at the CircuitPython >>> prompt.
Python Installation of L3GD20 Library
© Adafruit Industries https://learn.adafruit.com/adafruit-triple-axis-gyro-breakout Page 12 of 18