Skip to content

Commit 260d6c5

Browse files
committed
General cleanup
Brought in the changes originally made to Carrie-Anne's version for quickness
1 parent 15c11ea commit 260d6c5

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

usage/demos/README.md

+11-17
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,31 @@
22

33
Here are some example programs to demonstrate the Pi's capabilities.
44

5-
In order to run these programs you need to be at the command line. Your Pi may boot to the command line (requiring you to enter `startx` to get to the Desktop) - if so, go straight ahead. Otherwise, use the start button to logout of the Desktop.
5+
In order to run these programs you need to be at the command line. Your Pi may boot to the command line (requiring you to enter `startx` to get to the desktop); if so, go straight ahead. Otherwise, use the start button to log out of the desktop.
66

77
```
88
pi@raspberrypi ~ $
99
```
1010

11-
This (above) is the command prompt, try not to be afraid of it. A CLI (command line interface) is actually a very quick and efficient way to use a computer.
11+
This (above) is the command prompt. It looks difficult to use, but try not to be afraid of it! A CLI or command line interface is actually a very quick and efficient way to use a computer.
1212

13-
Firstly navigate to the `hello_pi` folder where all the demos are stored. Enter the command below to do this.
13+
To start, navigate to the `hello_pi` folder where all the demos are stored. Enter the command below to do this. **TIP**: You can use the `TAB` key for auto-complete as you enter commands.
1414

15-
TIP: You can use the TAB key to auto-complete commands to save typing them in full.
15+
`cd /opt/vc/src/hello_pi`
1616

17-
```
18-
cd /opt/vc/src/hello_pi
19-
```
17+
The command prompt should now look like the text below. The blue part shows where you are in the file system of the Pi.
2018

21-
The command prompt should now look like this, the blue part shows where you are in the file system of the Pi.
19+
`pi@raspberrypi /opt/vc/src/hello_pi $ _`
2220

23-
```
24-
pi@raspberrypi /opt/vc/src/hello_pi $
25-
```
21+
If you enter `ls` and press Enter, you’ll see a list of folders; there is one for each demo. Before you can run them, though, they must be compiled. Don’t worry if you don’t understand what this is or why you need to do it; just follow the instructions for now, and we'll learn more about it later on.
2622

27-
If you enter `ls` and press enter you'll see a list of folders. One for each demo. Before you can run them though they must be compiled. Don't worry if you don't understand why you need to do this, just take it on faith for now.
23+
There is a small shell script supplied in the `hello_pi` folder called rebuild.sh which will do the compiling for you. Enter the following command to run it; ignore the gobbledygook for now!
2824

29-
There is a small shell script supplied in the `hello_pi` folder called `rebuild.sh` which will do the compile for you, enter the following command to run it. Ignore the Gobbledygook for now!
25+
`./rebuild.sh`
3026

31-
```
32-
./rebuild.sh
33-
```
27+
A lot of text will scroll up the screen now, but for this exercise you can ignore it. It is just the output of the compiler as it works through the demo code. Wait for the command prompt to return before you continue.
3428

35-
A lot of text will scroll up the screen now, you can ignore it. It is just the output of the compiler as it works through the demo code. Wait for the command prompt to return before you continue.
29+
Now we’re finally ready to run some demos!
3630

3731
Demo programs:
3832

0 commit comments

Comments
 (0)