Skip to content

Commit c1d06ef

Browse files
committed
Tidy up and add instruction to install pip
1 parent c4a74da commit c1d06ef

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

hardware/sense-hat/README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,32 @@ In order to work correctly, the Sense HAT requires an up to date kernel, I2C ena
66

77
1. Ensure your apt package list is up to date:
88

9-
sudo apt-get update
9+
```bash
10+
sudo apt-get update
11+
```
1012

11-
2. Next, install the sense-hat package, which will ensure the kernel is up to date, enable I2C and install the necessary libraries and programs:
13+
1. Next, install the sense-hat package, which will ensure the kernel is up to date, enable I2C and install the necessary libraries and programs:
1214

13-
sudo apt-get install sense-hat
15+
```bash
16+
sudo apt-get install sense-hat
17+
```
1418

15-
3. The python-sense-hat library requires pillow to be installed in order to work under Python 3:
19+
1. The python-sense-hat library requires pillow to be installed in order to work under Python 3:
1620

17-
sudo pip-3.2 install pillow
21+
```bash
22+
sudo apt-get install python3-pip
23+
sudo pip-3.2 install pillow
24+
```
1825

19-
4. Finally, a reboot may be required if I2C was disabled or the kernel was not up to date prior to the install:
26+
1. Finally, a reboot may be required if I2C was disabled or the kernel was not up to date prior to the install:
2027

21-
sudo shutdown -r now
28+
```bash
29+
sudo reboot
30+
```
2231

2332
## Software overview
2433

25-
After installation, example code can be found under /usr/src/sense-hat/examples.
34+
After installation, example code can be found under `/usr/src/sense-hat/examples`.
2635

2736
These can be copied to the user's home directory by running `cp /usr/src/sense-hat/examples ~/ -a`.
2837
@@ -36,7 +45,7 @@ The RTIMULibDrive11 example comes pre-compiled to help ensure everything works a
3645
3746
sense-hat is the officially supported library for the Sense HAT and provides access to all of the on-board sensors and the LED matrix.
3847
39-
Complete documentation can be found [here](https://pythonhosted.org/sense-hat/).
48+
Complete documentation can be found at [pythonhosted.org/sense-hat](https://pythonhosted.org/sense-hat/).
4049
4150
### RTIMULib
4251

0 commit comments

Comments
 (0)