|
1 | 1 | # lsm303d Accelerometer And Compass
|
2 | 2 |
|
3 |
| -[](https://github.com/pimoroni/sgp30-python/actions/workflows/test.yml) |
4 |
| -[](https://coveralls.io/github/pimoroni/lsm303d-python?branch=master) |
| 3 | +[](https://github.com/pimoroni/lsm303d-python/actions/workflows/test.yml) |
| 4 | +[](https://coveralls.io/github/pimoroni/lsm303d-python?branch=main) |
5 | 5 | [](https://pypi.python.org/pypi/lsm303d)
|
6 | 6 | [](https://pypi.python.org/pypi/lsm303d)
|
7 | 7 |
|
8 |
| -Suitable for measuring orientation and motion, the lsm303d has a 3-axis accelerometer and compass. |
9 | 8 |
|
10 | 9 | # Installing
|
11 | 10 |
|
12 |
| -Stable library from PyPi: |
| 11 | +If you've already set up a Python virtual environment, you can also install the stable library manually from PyPi: |
13 | 12 |
|
14 |
| -* Just run `python3 -m pip install lsm303d` |
| 13 | +``` |
| 14 | +pip install lsm303d |
| 15 | +``` |
15 | 16 |
|
16 |
| -Latest/development library from GitHub: |
17 |
| - |
18 |
| -* `git clone https://github.com/pimoroni/lsm303d-python` |
19 |
| -* `cd lsm303d-python` |
20 |
| -* `sudo ./install.sh --unstable` |
21 |
| - |
22 |
| - |
23 |
| -# Changelog |
24 |
| -0.0.5 |
25 |
| ------ |
26 |
| - |
27 |
| -* Require i2cdevice>=0.0.6 |
| 17 | +Otherwise our install script will set one up for you. |
28 | 18 |
|
29 |
| -0.0.4 |
30 |
| ------ |
| 19 | +Stable library from GitHub: |
31 | 20 |
|
32 |
| -* Port to i2cdevice>=0.0.6 set/get API |
| 21 | +``` |
| 22 | +git clone https://github.com/pimoroni/lsm303d-python |
| 23 | +cd lsm303d-python |
| 24 | +./install.sh |
| 25 | +``` |
33 | 26 |
|
34 |
| -0.0.3 |
35 |
| ------ |
36 |
| - |
37 |
| -* BugFix: Fix for compatibility with i2cdevice>=0.0.6 |
38 |
| - |
39 |
| -0.0.2 |
40 |
| ------ |
41 |
| - |
42 |
| -* Bumped i2cdevice dependency to >=0.0.4 |
| 27 | +Latest/development library from GitHub: |
43 | 28 |
|
44 |
| -0.0.1 |
45 |
| ------ |
| 29 | +``` |
| 30 | +git clone https://github.com/pimoroni/lsm303d-python |
| 31 | +cd lsm303d-python |
| 32 | +./install.sh --unstable |
| 33 | +``` |
46 | 34 |
|
47 |
| -* Initial Release |
| 35 | +**Note** Libraries will be installed in the "pimoroni" virtual environment, you will need to activate it to run examples: |
0 commit comments