File: cli_env.rst

package info (click to toggle)
gpiozero 2.0.1-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,192 kB
  • sloc: python: 15,355; makefile: 246
file content (38 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.. GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
..
.. Copyright (c) 2023 Dave Jones <dave@waveform.org.uk>
..
.. SPDX-License-Identifier: BSD-3-Clause

=====================
Environment Variables
=====================

All utilities provided by GPIO Zero accept the following environment variables:

.. envvar:: GPIOZERO_PIN_FACTORY

    The library to use when communicating with the GPIO pins. Defaults to
    attempting to load lgpio, then RPi.GPIO, then pigpio, and finally uses a
    native Python implementation. Valid values include "lgpio", "rpigpio",
    "pigpio", "native", and "mock". The latter is most useful on non-Pi
    platforms as it emulates a Raspberry Pi model 3B (by default).

.. envvar:: PIGPIO_ADDR

    The hostname of the Raspberry Pi the pigpio library should attempt to
    connect to (if the pigpio pin factory is being used). Defaults to
    ``localhost``.

.. envvar:: PIGPIO_PORT

    The port number the pigpio library should attempt to connect to (if the
    pigpio pin factory is being used). Defaults to ``8888``.


.. only:: builder_man

    See Also
    --------

    :manpage:`pinout(1)`, :manpage:`pintest(1)`