doc: expert setup changes for more details

This commit is contained in:
Romain Bazile 2020-10-19 10:13:31 +02:00
parent 5f1685063a
commit 3a6ede512b

View file

@ -36,7 +36,7 @@ Make sure you have access to internet and update/upgrade your fresh Raspbian ins
Update your Pi first. Open up a terminal, and do the following: Update your Pi first. Open up a terminal, and do the following:
```sh ```sh
sudo apt update -y sudo apt update -y
sudo apt upgrade -y sudo apt full-upgrade -y
sudo apt install git sudo apt install git
``` ```
@ -111,7 +111,10 @@ sudo pip3 install adafruit-blinka
sudo pip3 install adafruit-circuitpython-motorkit sudo pip3 install adafruit-circuitpython-motorkit
``` ```
It is recommended to test this setup by creating this small script under the name `test/blinkatest.py` and running it (you can use the editor nano if you are using the terminal). #### Testing the installation and the wiring
It is recommended to test this setup by creating this small script under the name `test/blinkatest.py` and running it (you can use the editor nano if you are using the terminal). If you are using the image provided, you may find that the script is already there.
```python ```python
#!/usr/bin/python3 #!/usr/bin/python3
import board import board
@ -136,14 +139,14 @@ print("SPI ok!")
print("done!") print("done!")
``` ```
To run the script, just run the following: To start the script, just run the following:
```sh ```sh
chmod +x test/blinkatest.py chmod +x test/blinkatest.py
./test/blinkatest.py ./test/blinkatest.py
``` ```
The output should be similar to this: The output should be similar to this:
``` ```sh
pi@planktoscope:~ $ ./test/blinkatest.py pi@planktoscope:~ $ ./test/blinkatest.py
Hello blinka! Hello blinka!
Digital IO ok! Digital IO ok!
@ -153,7 +156,7 @@ done!
``` ```
Also, to make sure the wiring is good, we are going to use `sudo i2cdetect -y 1` to see if our devices are detected: Also, to make sure the wiring is good, we are going to use `sudo i2cdetect -y 1` to see if our devices are detected:
``` ```sh
pi@planktoscope:~ $ sudo i2cdetect -y 1 pi@planktoscope:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f 0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- 0d -- -- 00: -- -- -- -- -- -- -- -- -- -- 0d -- --