mirror of https://github.com/Desuuuu/klipper.git
docs: Updated accelerometer installation instructions for Python 3
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
parent
247a409335
commit
f2e27ae05e
|
@ -76,21 +76,21 @@ the system that may damage the electronics.
|
||||||
### Software installation
|
### Software installation
|
||||||
|
|
||||||
Note that resonance measurements and shaper auto-calibration require additional
|
Note that resonance measurements and shaper auto-calibration require additional
|
||||||
software dependencies not installed by default. First, you will have to run on
|
software dependencies not installed by default. First, run on your Raspberry Pi
|
||||||
your Raspberry Pi the following command:
|
the following commands:
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
Next, in order to install NumPy in the Klipper environment, run the command:
|
||||||
```
|
```
|
||||||
~/klippy-env/bin/pip install -v numpy
|
~/klippy-env/bin/pip install -v numpy
|
||||||
```
|
```
|
||||||
to install `numpy` package. Note that, depending on the performance of the
|
Note that, depending on the performance of the CPU, it may take *a lot*
|
||||||
CPU, it may take *a lot* of time, up to 10-20 minutes. Be patient and wait
|
of time, up to 10-20 minutes. Be patient and wait for the completion of
|
||||||
for the completion of the installation. On some occasions, if the board has
|
the installation. On some occasions, if the board has too little RAM
|
||||||
too little RAM, the installation may fail and you will need to enable swap.
|
the installation may fail and you will need to enable swap.
|
||||||
|
|
||||||
Next, run the following commands to install the additional dependencies:
|
|
||||||
```
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install python3-numpy python3-matplotlib
|
|
||||||
```
|
|
||||||
|
|
||||||
Afterwards, check and follow the instructions in the
|
Afterwards, check and follow the instructions in the
|
||||||
[RPi Microcontroller document](RPi_microcontroller.md) to setup the
|
[RPi Microcontroller document](RPi_microcontroller.md) to setup the
|
||||||
|
|
Loading…
Reference in New Issue