File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,18 @@ work is done by the daemon. One benefit of working this way is that you can
3636remotely access the pi over a network and multiple instances can be connected
3737to 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
5058using 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
5870set_mode (pi :: Pi , pin:: Int , mode)
5971get_mode (pi :: Pi , pin:: Int )
You can’t perform that action at this time.
0 commit comments