<metaname="description"content="Raspberry Pi Reg. C GPIO library and Python GPIO module and shell command utilities to control the GPIO, including SPI, I2C, and serial links."/>
</td></tr><tr><td><b>-e value</b></td><td>Secondary DMA channel</td><td>0-14</td><td>Default 6. Preferably use one of DMA channels 0 to 6 for the secondary channel
</td></tr><tr><td><b>-n IP address</b></td><td>Allow IP address to use the socket interface</td><td>Name (e.g. paul) or dotted quad (e.g. 192.168.1.66)</td><td>If the -n option is not used all addresses are allowed (unless overridden by the -k or -l options). Multiple -n options are allowed. If -k has been used -n has no effect. If -l has been used only -n localhost has any effect
</td></tr><tr><td><b>-t value</b></td><td>Clock peripheral</td><td>0=PWM 1=PCM</td><td>Default PCM. pigpio uses one or both of PCM and PWM. If PCM is used then PWM is available for audio. If PWM is used then PCM is available for audio. If waves or hardware PWM are used neither PWM nor PCM will be available for audio.
</td></tr><tr><td><b>-v -V</b></td><td>Display pigpio version and exit</td><td></td><td>
</td></tr><tr><td><b>-x mask</b></td><td>GPIO which may be updated</td><td>A 54 bit mask with (1<<n) set if the user may update GPIO #n</td><td>Default is the set of user GPIO for the board revision. Use -x -1 to allow all GPIO
</td></tr></tbody></table><h3>Example</h3><code>sudo pigpiod -s 2 -b 200 -f<br></code><br><br>Launch the pigpio library with a sample rate of 2 microseconds and a 200 millisecond buffer. Disable the fifo interface.
<h3>Permissions</h3>pigpio provides a rudimentary permissions system for commands issued via the socket and pipe interfaces.
<br><br>All GPIO may be read.
<br><br>Only the user GPIO for the board type or those specified by the -x option may be updated.
<br><br><code>Type 1 boards 0x03E6CF93 (26 pin header)<br>Type 2 boards 0xFBC6CF9C (26 pin + 8 pin header)<br>Type 3 boards 0x0FFFFFFC (40 pin header)<br></code><br><br>In this context an update includes the following:
<br><br>GPIO mode set<br>
GPIO pull/up down<br>
GPIO write<br>
GPIO set PWM (including range and frequency)<br>
GPIO set servo
<br><br>In addition the bank clear and set commands, and the wave commands will only
affect updateable GPIO.
<h3>Exceptions</h3>The following exceptions are made for particular models.
<br><br><b>Models A and B</b><br><br>The green activity LED (GPIO 16) may be written.<br>
<br><b>Models A+ and B+</b><br><br>The green activity LED (GPIO 47) may be written.<br>
The red power LED (GPIO 35) may be written.<br>
The high USB power mode (GPIO 38) may be written.<br>
<br><b>Pi Zero</b><br><br>The green activity LED (GPIO 47) may be written.<br>
<br><b>Pi2B</b><br><br>The green activity LED (GPIO 47) may be written.<br>
The red power LED (GPIO 35) may be written.<br>
The high USB power mode (GPIO 38) may be written.<br>
<br><b>Pi3B</b><br><br>The green activity LED and the red power LED are not writable.<br>
The USB power mode is fixed at 1.2 amps (high power).<br>
<h3>DMA Channels</h3>The secondary channel is only used for the transmission of waves.
<br><br>If possible use one of channels 0 to 6 for the secondary channel (a full channel).
<br><br>A full channel only requires one DMA control block regardless of the length of a pulse delay. Channels 7 to 14 (lite channels) require one DMA control block for each 16383 microseconds of delay. I.e. a 10 second pulse delay requires one control block on a full channel and 611 control blocks on a lite channel.