Skip to content

Commit 78b63f7

Browse files
Merge branch 'master' of github.com:JuliaBerry/PiGPIO.jl
2 parents 559e6ea + 9efb427 commit 78b63f7

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,18 @@ work is done by the daemon. One benefit of working this way is that you can
3636
remotely access the pi over a network and multiple instances can be connected
3737
to the daemon simultaneously.
3838

39-
## Launching the Daemon
39+
## The daemon process `pigpiod`
4040

41-
Launching the daemon requires sudo privileges. Launch by typing `sudo pigpiod`
42-
in the terminal.
41+
On Raspberry Pi OS, the daemon `pigpiod` can be installed and launched by using the following shell commands:
42+
43+
```bash
44+
# install pigpiod
45+
sudo apt-get install pigpiod
46+
# enable pigpiod via system D
47+
sudo systemctl enable pigpiod
48+
```
49+
50+
The daemon can also be launched manually with `sudo pigpiod` in the terminal.
4351

4452
## Installation and Usage
4553

@@ -49,11 +57,15 @@ Pkg.add("PiGPIO")
4957

5058
using PiGPIO
5159

52-
pi=Pi() #connect to pigpiod daemon on localhost
60+
pi=Pi() # connect to the pigpiod daemon on localhost
5361
```
5462

5563
## Example Usage
5664

65+
The `pin` number corresponds to the GPIO pins
66+
(General Purpose Input/Output, aka "BCM" or "Broadcom") and not
67+
to the physical pin numbers.
68+
5769
```julia
5870
set_mode(pi::Pi, pin::Int, mode)
5971
get_mode(pi::Pi, pin::Int)

0 commit comments

Comments
 (0)