22Introduction
33============
44
5- .. image :: https://readthedocs.org/projects/adafruit-circuitpython-lsm303agr -mag/badge/?version=latest
6- :target: https://circuitpython.readthedocs.io/projects/lsm303agr -mag/en/latest/
5+ .. image :: https://readthedocs.org/projects/adafruit-circuitpython-lis2mdl -mag/badge/?version=latest
6+ :target: https://circuitpython.readthedocs.io/projects/lis2mdl -mag/en/latest/
77 :alt: Documentation Status
88
99.. image :: https://img.shields.io/discord/327254708534116352.svg
1010 :target: https://discord.gg/nBQh6qu
1111 :alt: Discord
1212
13- .. image :: https://github.com/adafruit/Adafruit_CircuitPython_LSM303AGR_Mag /workflows/Build%20CI/badge.svg
14- :target: https://github.com/adafruit/Adafruit_CircuitPython_LSM303AGR_Mag /actions/
13+ .. image :: https://github.com/adafruit/Adafruit_CircuitPython_LIS2MDL /workflows/Build%20CI/badge.svg
14+ :target: https://github.com/adafruit/Adafruit_CircuitPython_LIS2MDL /actions/
1515 :alt: Build Status
1616
17- Adafruit CircuitPython module for the LSM303AGR's 3-axis magnetometer
17+ Adafruit CircuitPython module for the LIS2MDL 3-axis magnetometer
1818
1919Dependencies
2020=============
@@ -32,17 +32,17 @@ Installing from PyPI
3232====================
3333
3434On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
35- PyPI <https://pypi.org/project/adafruit-circuitpython-lsm303agr_mag /> `_. To install for current user:
35+ PyPI <https://pypi.org/project/adafruit-circuitpython-lis2mdl /> `_. To install for current user:
3636
3737.. code-block :: shell
3838
39- pip3 install adafruit-circuitpython-lsm303agr_mag
39+ pip3 install adafruit-circuitpython-lis2mdl
4040
4141 To install system-wide (this may be required in some cases):
4242
4343.. code-block :: shell
4444
45- sudo pip3 install adafruit-circuitpython-lsm303agr_mag
45+ sudo pip3 install adafruit-circuitpython-lis2mdl
4646
4747 To install in a virtual environment in your current project:
4848
@@ -51,7 +51,7 @@ To install in a virtual environment in your current project:
5151 mkdir project-name && cd project-name
5252 python3 -m venv .env
5353 source .env/bin/activate
54- pip3 install adafruit-circuitpython-lsm303agr_mag
54+ pip3 install adafruit-circuitpython-lis2mdl
5555
5656 Usage Example
5757=============
@@ -61,10 +61,10 @@ Usage Example
6161 import time
6262 import board
6363 import busio
64- import adafruit_lsm303agr_mag
64+ import adafruit_lis2mdl
6565
6666 i2c = busio.I2C(board.SCL , board.SDA )
67- sensor = adafruit_lsm303agr_mag.LSM303AGR_Mag (i2c)
67+ sensor = adafruit_lis2mdl.LIS2MDL (i2c)
6868
6969 while True :
7070 mag_x, mag_y, mag_z = sensor.magnetic
@@ -78,7 +78,7 @@ Contributing
7878============
7979
8080Contributions are welcome! Please read our `Code of Conduct
81- <https://github.com/adafruit/Adafruit_CircuitPython_LSM303AGR_Mag /blob/master/CODE_OF_CONDUCT.md> `_
81+ <https://github.com/adafruit/Adafruit_CircuitPython_LIS2MDL /blob/master/CODE_OF_CONDUCT.md> `_
8282before contributing to help this project stay welcoming.
8383
8484Documentation
0 commit comments