Classes | Functions | Variables
pigpio Namespace Reference

Classes

class  _callback
class  _callback_ADT
class  _callback_thread
class  _event
class  _event_ADT
class  _socklock
class  _wait_for_edge
class  _wait_for_event
class  error
class  pi
class  pulse

Functions

def _b
def _pigpio_command
def _pigpio_command_ext
def _pigpio_command_ext_nolock
def _pigpio_command_nolock
def _str
def _u2i
def error_text
def tickDiff
def u2i
def xref

Variables

list _errors
string _except_1
string _except_2
string _except_3
string _except_a = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n{}"
string _except_z = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
int _PI_BAD_BUF_MILLIS = 20
int _PI_BAD_CFG_INTERNAL = 34
int _PI_BAD_CHANNEL = 27
int _PI_BAD_CLK_MICROS = 19
int _PI_BAD_CLK_PERIPH = 17
int _PI_BAD_CLK_SOURCE = 18
int _PI_BAD_EDGE = 122
int _PI_BAD_FIFO_COMMAND = 29
int _PI_BAD_I2C_SEG = 106
int _PI_BAD_IF_FLAGS = 26
int _PI_BAD_ISR_INIT = 123
int _PI_BAD_MICROS = 13
int _PI_BAD_MS = 10
int _PI_BAD_PATHNAME = 23
int _PI_BAD_POINTER = 90
int _PI_BAD_PRIM_CHANNEL = 27
int _PI_BAD_SECO_CHANNEL = 30
int _PI_BAD_SECONDS = 12
int _PI_BAD_SERIAL_BUF = 40
int _PI_BAD_SERIAL_STRUC = 39
int _PI_BAD_SIGNUM = 22
int _PI_BAD_SOCKET_PORT = 28
int _PI_BAD_TIMER = 9
int _PI_BAD_TIMETYPE = 11
int _PI_BAD_WAVE_MODE = 33
int _PI_CMD_BC1 = 12
int _PI_CMD_BC2 = 13
int _PI_CMD_BI2CC = 89
int _PI_CMD_BI2CO = 90
int _PI_CMD_BI2CZ = 91
int _PI_CMD_BR1 = 10
int _PI_CMD_BR2 = 11
int _PI_CMD_BS1 = 14
int _PI_CMD_BS2 = 15
int _PI_CMD_BSCX = 114
int _PI_CMD_BSPIC = 111
int _PI_CMD_BSPIO = 112
int _PI_CMD_BSPIX = 113
int _PI_CMD_CF1 = 87
int _PI_CMD_CF2 = 88
int _PI_CMD_CGI = 95
int _PI_CMD_CSI = 96
int _PI_CMD_EVM = 115
int _PI_CMD_EVT = 116
int _PI_CMD_FC = 105
int _PI_CMD_FG = 97
int _PI_CMD_FL = 109
int _PI_CMD_FN = 98
int _PI_CMD_FO = 104
int _PI_CMD_FR = 106
int _PI_CMD_FS = 108
int _PI_CMD_FW = 107
int _PI_CMD_GDC = 83
int _PI_CMD_GPW = 84
int _PI_CMD_HC = 85
int _PI_CMD_HELP = 25
int _PI_CMD_HP = 86
int _PI_CMD_HWVER = 17
int _PI_CMD_I2CC = 55
int _PI_CMD_I2CO = 54
int _PI_CMD_I2CPC = 69
int _PI_CMD_I2CPK = 70
int _PI_CMD_I2CRB = 61
int _PI_CMD_I2CRD = 56
int _PI_CMD_I2CRI = 67
int _PI_CMD_I2CRK = 65
int _PI_CMD_I2CRS = 59
int _PI_CMD_I2CRW = 63
int _PI_CMD_I2CWB = 62
int _PI_CMD_I2CWD = 57
int _PI_CMD_I2CWI = 68
int _PI_CMD_I2CWK = 66
int _PI_CMD_I2CWQ = 58
int _PI_CMD_I2CWS = 60
int _PI_CMD_I2CWW = 64
int _PI_CMD_I2CZ = 92
int _PI_CMD_MICRO = 46
int _PI_CMD_MILLI = 47
int _PI_CMD_MODEG = 1
int _PI_CMD_MODES = 0
int _PI_CMD_NB = 19
int _PI_CMD_NC = 21
int _PI_CMD_NO = 18
int _PI_CMD_NOIB = 99
int _PI_CMD_NP = 20
int _PI_CMD_PADG = 103
int _PI_CMD_PADS = 102
int _PI_CMD_PARSE = 48
int _PI_CMD_PFG = 23
int _PI_CMD_PFS = 7
int _PI_CMD_PIGPV = 26
int _PI_CMD_PRG = 22
int _PI_CMD_PROC = 38
int _PI_CMD_PROCD = 39
int _PI_CMD_PROCP = 45
int _PI_CMD_PROCR = 40
int _PI_CMD_PROCS = 41
int _PI_CMD_PROCU = 117
int _PI_CMD_PRRG = 24
int _PI_CMD_PRS = 6
int _PI_CMD_PUD = 2
int _PI_CMD_PWM = 5
int _PI_CMD_READ = 3
int _PI_CMD_SERC = 77
int _PI_CMD_SERDA = 82
int _PI_CMD_SERO = 76
int _PI_CMD_SERR = 80
int _PI_CMD_SERRB = 78
int _PI_CMD_SERVO = 8
int _PI_CMD_SERW = 81
int _PI_CMD_SERWB = 79
int _PI_CMD_SHELL = 110
int _PI_CMD_SLR = 43
int _PI_CMD_SLRC = 44
int _PI_CMD_SLRI = 94
int _PI_CMD_SLRO = 42
int _PI_CMD_SPIC = 72
int _PI_CMD_SPIO = 71
int _PI_CMD_SPIR = 73
int _PI_CMD_SPIW = 74
int _PI_CMD_SPIX = 75
int _PI_CMD_TICK = 16
int _PI_CMD_TRIG = 37
int _PI_CMD_WDOG = 9
int _PI_CMD_WRITE = 4
int _PI_CMD_WVAG = 28
int _PI_CMD_WVAS = 29
int _PI_CMD_WVBSY = 32
int _PI_CMD_WVCHA = 93
int _PI_CMD_WVCLR = 27
int _PI_CMD_WVCRE = 49
int _PI_CMD_WVDEL = 50
int _PI_CMD_WVGO = 30
int _PI_CMD_WVGOR = 31
int _PI_CMD_WVHLT = 33
int _PI_CMD_WVNEW = 53
int _PI_CMD_WVSC = 36
int _PI_CMD_WVSM = 34
int _PI_CMD_WVSP = 35
int _PI_CMD_WVTAT = 101
int _PI_CMD_WVTX = 51
int _PI_CMD_WVTXM = 100
int _PI_CMD_WVTXR = 52
int _PI_INIT_FAILED = 1
int _PI_INITIALISED = 32
int _PI_NO_ALERT_FUNC = 16
int _PI_NOT_INITIALISED = 31
int _PI_TIMER_FAILED = 14
int _PI_TOO_MANY_SEGS = 105
int _SOCK_CMD_LEN = 16
int ALT0 = 4
int ALT1 = 5
int ALT2 = 6
int ALT3 = 7
int ALT4 = 3
int ALT5 = 2
int CLEAR = 0
int EITHER_EDGE = 2
int EVENT_BSC = 31
 exceptions = True
int FALLING_EDGE = 1
int FILE_APPEND = 4
int FILE_CREATE = 8
int FILE_READ = 1
int FILE_RW = 3
int FILE_TRUNC = 16
int FILE_WRITE = 2
int FROM_CURRENT = 1
int FROM_END = 2
int FROM_START = 0
int HIGH = 1
int INPUT = 0
int LOW = 0
int NO_TX_WAVE = 9999
tuple NTFY_FLAGS_ALIVE = (1 << 6)
tuple NTFY_FLAGS_EVENT = (1 << 7)
int NTFY_FLAGS_GPIO = 31
tuple NTFY_FLAGS_WDOG = (1 << 5)
int OFF = 0
int ON = 1
int OUTPUT = 1
int PI_BAD_CHAIN_CMD = 116
int PI_BAD_CHAIN_DELAY = 117
int PI_BAD_CHAIN_LOOP = 114
int PI_BAD_DATABITS = 101
int PI_BAD_DUTYCYCLE = 8
int PI_BAD_DUTYRANGE = 21
int PI_BAD_EVENT_ID = 143
int PI_BAD_FILE_FLAG = 130
int PI_BAD_FILE_MODE = 129
int PI_BAD_FILE_READ = 131
int PI_BAD_FILE_SEEK = 135
int PI_BAD_FILE_WRITE = 132
int PI_BAD_FILTER = 125
int PI_BAD_FLAGS = 77
int PI_BAD_FOREVER = 124
int PI_BAD_GPIO = 3
int PI_BAD_HANDLE = 25
int PI_BAD_HCLK_FREQ = 98
int PI_BAD_HCLK_PASS = 99
int PI_BAD_HPWM_DUTY = 97
int PI_BAD_HPWM_FREQ = 96
int PI_BAD_I2C_ADDR = 75
int PI_BAD_I2C_BAUD = 112
int PI_BAD_I2C_BUS = 74
int PI_BAD_I2C_CMD = 111
int PI_BAD_I2C_RLEN = 110
int PI_BAD_I2C_WLEN = 109
int PI_BAD_LEVEL = 5
int PI_BAD_MALLOC_MODE = 104
int PI_BAD_MICS_DELAY = 64
int PI_BAD_MILS_DELAY = 65
int PI_BAD_MODE = 4
int PI_BAD_PAD = 126
int PI_BAD_PARAM = 81
int PI_BAD_PARAM_NUM = 52
int PI_BAD_PUD = 6
int PI_BAD_PULSELEN = 46
int PI_BAD_PULSEWIDTH = 7
int PI_BAD_SCRIPT = 47
int PI_BAD_SCRIPT_CMD = 55
int PI_BAD_SCRIPT_ID = 48
int PI_BAD_SCRIPT_NAME = 140
int PI_BAD_SER_DEVICE = 79
int PI_BAD_SER_INVERT = 121
int PI_BAD_SER_OFFSET = 49
int PI_BAD_SER_SPEED = 80
int PI_BAD_SERIAL_COUNT = 51
int PI_BAD_SHELL_STATUS = 139
int PI_BAD_SMBUS_CMD = 107
int PI_BAD_SPI_BAUD = 141
int PI_BAD_SPI_CHANNEL = 76
int PI_BAD_SPI_COUNT = 84
int PI_BAD_SPI_SPEED = 78
int PI_BAD_STOPBITS = 102
int PI_BAD_STRENGTH = 127
int PI_BAD_TAG = 63
int PI_BAD_USER_GPIO = 2
int PI_BAD_VAR_NUM = 56
int PI_BAD_WAVE_BAUD = 35
int PI_BAD_WAVE_ID = 66
int PI_BAD_WDOG_TIMEOUT = 15
int PI_BAD_WVSC_COMMND = 43
int PI_BAD_WVSM_COMMND = 44
int PI_BAD_WVSP_COMMND = 45
int PI_CHAIN_COUNTER = 115
int PI_CHAIN_LOOP_CNT = 113
int PI_CHAIN_NESTING = 118
int PI_CHAIN_TOO_BIG = 119
int PI_CMD_INTERRUPTED = 144
int PI_DEPRECATED = 120
int PI_DUP_TAG = 53
int PI_EMPTY_WAVEFORM = 69
int PI_FIL_OPEN_FAILED = 128
int PI_FILE_IS_A_DIR = 138
int PI_FILE_NOT_ROPEN = 133
int PI_FILE_NOT_WOPEN = 134
int PI_GPIO_IN_USE = 50
int PI_HPWM_ILLEGAL = 100
int PI_I2C_OPEN_FAILED = 71
int PI_I2C_READ_FAILED = 83
int PI_I2C_WRITE_FAILED = 82
int PI_MSG_TOOBIG = 103
int PI_NO_AUX_SPI = 91
int PI_NO_FILE_ACCESS = 137
int PI_NO_FILE_MATCH = 136
int PI_NO_HANDLE = 24
int PI_NO_MEMORY = 58
int PI_NO_SCRIPT_ROOM = 57
int PI_NO_WAVEFORM_ID = 70
int PI_NOT_HCLK_GPIO = 94
int PI_NOT_HPWM_GPIO = 95
int PI_NOT_I2C_GPIO = 108
int PI_NOT_PERMITTED = 41
int PI_NOT_PWM_GPIO = 92
int PI_NOT_SERIAL_GPIO = 38
int PI_NOT_SERVO_GPIO = 93
int PI_NOT_SPI_GPIO = 142
int PI_SCRIPT_FAILED = 4
int PI_SCRIPT_HALTED = 1
int PI_SCRIPT_INITING = 0
int PI_SCRIPT_NOT_READY = 62
int PI_SCRIPT_RUNNING = 2
int PI_SCRIPT_WAITING = 3
int PI_SER_OPEN_FAILED = 72
int PI_SER_READ_FAILED = 86
int PI_SER_READ_NO_DATA = 87
int PI_SER_WRITE_FAILED = 85
int PI_SOCK_READ_FAILED = 59
int PI_SOCK_WRIT_FAILED = 60
int PI_SOME_PERMITTED = 42
int PI_SPI_OPEN_FAILED = 73
int PI_SPI_XFER_FAILED = 89
int PI_TOO_MANY_CBS = 67
int PI_TOO_MANY_CHARS = 37
int PI_TOO_MANY_OOL = 68
int PI_TOO_MANY_PARAM = 61
int PI_TOO_MANY_PULSES = 36
int PI_TOO_MANY_TAGS = 54
int PI_UNKNOWN_COMMAND = 88
int PUD_DOWN = 1
int PUD_OFF = 0
int PUD_UP = 2
int RISING_EDGE = 0
int SET = 1
int SPI_CPHA = 1
int SPI_CPOL = 1
int SPI_CS_HIGH_ACTIVE = 1
int SPI_MODE_0 = 0
int SPI_MODE_1 = 1
int SPI_MODE_2 = 2
int SPI_MODE_3 = 3
int SPI_RX_LSBFIRST = 1
int SPI_TX_LSBFIRST = 1
int TIMEOUT = 2
string VERSION = "1.41"
int WAVE_MODE_ONE_SHOT = 0
int WAVE_MODE_ONE_SHOT_SYNC = 2
int WAVE_MODE_REPEAT = 1
int WAVE_MODE_REPEAT_SYNC = 3
int WAVE_NOT_FOUND = 9998

Detailed Description

pigpio is a Python module for the Raspberry which talks to
the pigpio daemon to allow control of the general purpose
input outputs (GPIO).

[http://abyz.me.uk/rpi/pigpio/python.html]

*Features*

o the pigpio Python module can run on Windows, Macs, or Linux

o controls one or more Pi's

o hardware timed PWM on any of GPIO 0-31

o hardware timed servo pulses on any of GPIO 0-31

o callbacks when any of GPIO 0-31 change state

o creating and transmitting precisely timed waveforms

o reading/writing GPIO and setting their modes

o wrappers for I2C, SPI, and serial links

o creating and running scripts on the pigpio daemon

*GPIO*

ALL GPIO are identified by their Broadcom number.

*Notes*

Transmitted waveforms are accurate to a microsecond.

Callback level changes are time-stamped and will be
accurate to within a few microseconds.

*Settings*

A number of settings are determined when the pigpio daemon is started.

o the sample rate (1, 2, 4, 5, 8, or 10 us, default 5 us).

o the set of GPIO which may be updated (generally written to).  The
  default set is those available on the Pi board revision.

o the available PWM frequencies (see [*set_PWM_frequency*]).

*Exceptions*

By default a fatal exception is raised if you pass an invalid
argument to a pigpio function.

If you wish to handle the returned status yourself you should set
pigpio.exceptions to False.

You may prefer to check the returned status in only a few parts
of your code.  In that case do the following:

...
pigpio.exceptions = False

# Code where you want to test the error status.

pigpio.exceptions = True
...

*Usage*

This module uses the services of the C pigpio library.  pigpio
must be running on the Pi(s) whose GPIO are to be manipulated.

The normal way to start pigpio is as a daemon (during system
start).

sudo pigpiod

Your Python program must import pigpio and create one or more
instances of the pigpio.pi class.  This class gives access to
a specified Pi's GPIO.

...
pi1 = pigpio.pi()       # pi1 accesses the local Pi's GPIO
pi2 = pigpio.pi('tom')  # pi2 accesses tom's GPIO
pi3 = pigpio.pi('dick') # pi3 accesses dick's GPIO

pi1.write(4, 0) # set local Pi's GPIO 4 low
pi2.write(4, 1) # set tom's GPIO 4 to high
pi3.read(4)     # get level of dick's GPIO 4
...

The later example code snippets assume that pi is an instance of
the pigpio.pi class.

OVERVIEW

Essential

pigpio.pi                 Initialise Pi connection
stop                      Stop a Pi connection

Beginner

set_mode                  Set a GPIO mode
get_mode                  Get a GPIO mode
set_pull_up_down          Set/clear GPIO pull up/down resistor

read                      Read a GPIO
write                     Write a GPIO

set_PWM_dutycycle         Start/stop PWM pulses on a GPIO
get_PWM_dutycycle         Get PWM dutycycle set on a GPIO

set_servo_pulsewidth      Start/Stop servo pulses on a GPIO
get_servo_pulsewidth      Get servo pulsewidth set on a GPIO

callback                  Create GPIO level change callback
wait_for_edge             Wait for GPIO level change

Intermediate

gpio_trigger              Send a trigger pulse to a GPIO

set_watchdog              Set a watchdog on a GPIO

set_PWM_range             Configure PWM range of a GPIO
get_PWM_range             Get configured PWM range of a GPIO

set_PWM_frequency         Set PWM frequency of a GPIO
get_PWM_frequency         Get PWM frequency of a GPIO

read_bank_1               Read all bank 1 GPIO
read_bank_2               Read all bank 2 GPIO

clear_bank_1              Clear selected GPIO in bank 1
clear_bank_2              Clear selected GPIO in bank 2

set_bank_1                Set selected GPIO in bank 1
set_bank_2                Set selected GPIO in bank 2

Advanced

get_PWM_real_range        Get underlying PWM range for a GPIO

notify_open               Request a notification handle
notify_begin              Start notifications for selected GPIO
notify_pause              Pause notifications
notify_close              Close a notification

bb_serial_read_open       Open a GPIO for bit bang serial reads
bb_serial_read            Read bit bang serial data from  a GPIO
bb_serial_read_close      Close a GPIO for bit bang serial reads
bb_serial_invert          Invert serial logic (1 invert, 0 normal)

hardware_clock            Start hardware clock on supported GPIO
hardware_PWM              Start hardware PWM on supported GPIO

set_glitch_filter         Set a glitch filter on a GPIO
set_noise_filter          Set a noise filter on a GPIO

get_pad_strength          Gets a pads drive strength
set_pad_strength          Sets a pads drive strength

shell                     Executes a shell command

Scripts

store_script              Store a script
run_script                Run a stored script
update_script             Set a scripts parameters
script_status             Get script status and parameters
stop_script               Stop a running script
delete_script             Delete a stored script

Waves

wave_clear                Deletes all waveforms

wave_add_new              Starts a new waveform
wave_add_generic          Adds a series of pulses to the waveform
wave_add_serial           Adds serial data to the waveform

wave_create               Creates a waveform from added data
wave_delete               Deletes a waveform

wave_send_once            Transmits a waveform once
wave_send_repeat          Transmits a waveform repeatedly
wave_send_using_mode      Transmits a waveform in the chosen mode

wave_chain                Transmits a chain of waveforms

wave_tx_at                Returns the current transmitting waveform
wave_tx_busy              Checks to see if a waveform has ended
wave_tx_stop              Aborts the current waveform

wave_get_micros           Length in microseconds of the current waveform
wave_get_max_micros       Absolute maximum allowed micros
wave_get_pulses           Length in pulses of the current waveform
wave_get_max_pulses       Absolute maximum allowed pulses
wave_get_cbs              Length in cbs of the current waveform
wave_get_max_cbs          Absolute maximum allowed cbs

I2C

i2c_open                  Opens an I2C device
i2c_close                 Closes an I2C device

i2c_write_quick           SMBus write quick
i2c_write_byte            SMBus write byte
i2c_read_byte             SMBus read byte
i2c_write_byte_data       SMBus write byte data
i2c_write_word_data       SMBus write word data
i2c_read_byte_data        SMBus read byte data
i2c_read_word_data        SMBus read word data
i2c_process_call          SMBus process call
i2c_write_block_data      SMBus write block data
i2c_read_block_data       SMBus read block data
i2c_block_process_call    SMBus block process call

i2c_read_i2c_block_data   SMBus read I2C block data
i2c_write_i2c_block_data  SMBus write I2C block data

i2c_read_device           Reads the raw I2C device
i2c_write_device          Writes the raw I2C device

i2c_zip                   Performs multiple I2C transactions

bb_i2c_open               Opens GPIO for bit banging I2C
bb_i2c_close              Closes GPIO for bit banging I2C
bb_i2c_zip                Performs multiple bit banged I2C transactions

SPI

spi_open                  Opens a SPI device
spi_close                 Closes a SPI device

spi_read                  Reads bytes from a SPI device
spi_write                 Writes bytes to a SPI device
spi_xfer                  Transfers bytes with a SPI device

bb_spi_open               Opens GPIO for bit banging SPI
bb_spi_close              Closes GPIO for bit banging SPI
bb_spi_xfer               Transfers bytes with bit banging SPI

I2C/SPI_Slave

bsc_xfer                  I2C/SPI as slave transfer
bsc_i2c                   I2C as slave transfer

Serial

serial_open               Opens a serial device
serial_close              Closes a serial device

serial_read               Reads bytes from a serial device
serial_read_byte          Reads a byte from a serial device

serial_write              Writes bytes to a serial device
serial_write_byte         Writes a byte to a serial device

serial_data_available     Returns number of bytes ready to be read

Files

file_open                 Opens a file
file_close                Closes a file
file_read                 Reads bytes from a file
file_write                Writes bytes to a file
file_seek                 Seeks to a position within a file
file_list                 List files which match a pattern

Events

event_callback            Sets a callback for an event
event_trigger             Triggers an event
wait_for_event            Wait for an event

Custom

custom_1                  User custom function 1
custom_2                  User custom function 2

Utility

get_current_tick          Get current tick (microseconds)

get_hardware_revision     Get hardware revision
get_pigpio_version        Get the pigpio version

pigpio.error_text         Gets error text from error number
pigpio.tickDiff           Returns difference between two ticks

Function Documentation

def pigpio::_b (   x) [private]

Definition at line 933 of file pigpio.py.

def pigpio._pigpio_command (   sl,
  cmd,
  p1,
  p2 
) [private]
Runs a pigpio socket command.

 sl:= command socket and lock.
cmd:= the command to be executed.
 p1:= command parameter 1 (if applicable).
 p2:= command parameter 2 (if applicable).

Definition at line 978 of file pigpio.py.

def pigpio._pigpio_command_ext (   sl,
  cmd,
  p1,
  p2,
  p3,
  extents 
) [private]
Runs an extended pigpio socket command.

     sl:= command socket and lock.
    cmd:= the command to be executed.
     p1:= command parameter 1 (if applicable).
     p2:= command parameter 2 (if applicable).
     p3:= total size in bytes of following extents
extents:= additional data blocks

Definition at line 1007 of file pigpio.py.

def pigpio._pigpio_command_ext_nolock (   sl,
  cmd,
  p1,
  p2,
  p3,
  extents 
) [private]
Runs an extended pigpio socket command.

     sl:= command socket and lock.
    cmd:= the command to be executed.
     p1:= command parameter 1 (if applicable).
     p2:= command parameter 2 (if applicable).
     p3:= total size in bytes of following extents
extents:= additional data blocks

Definition at line 1030 of file pigpio.py.

def pigpio._pigpio_command_nolock (   sl,
  cmd,
  p1,
  p2 
) [private]
Runs a pigpio socket command.

 sl:= command socket and lock.
cmd:= the command to be executed.
 p1:= command parameter 1 (if applicable).
 p2:= command parameter 2 (if applicable).

Definition at line 993 of file pigpio.py.

def pigpio::_str (   x) [private]

Definition at line 940 of file pigpio.py.

def pigpio._u2i (   uint32) [private]
Converts a 32 bit unsigned number to signed.  If the number
is negative it indicates an error.  On error a pigpio
exception will be raised if exceptions is True.

Definition at line 966 of file pigpio.py.

def pigpio.error_text (   errnum)
Returns a text description of a pigpio error.

errnum:= <0, the error number

...
print(pigpio.error_text(-5))
level not 0-1
...

Definition at line 895 of file pigpio.py.

def pigpio.tickDiff (   t1,
  t2 
)
Returns the microsecond difference between two ticks.

t1:= the earlier tick
t2:= the later tick

...
print(pigpio.tickDiff(4294967272, 12))
36
...

Definition at line 911 of file pigpio.py.

def pigpio.u2i (   uint32)
Converts a 32 bit unsigned number to signed.

uint32:= an unsigned 32 bit number

...
print(u2i(4294967272))
-24
print(u2i(37))
37
...

Definition at line 946 of file pigpio.py.

def pigpio.xref ( )
active: 0-1000000
The number of microseconds level changes are reported for once
a noise filter has been triggered (by [*steady*] microseconds of
a stable level).


arg1:
An unsigned argument passed to a user customised function.  Its
meaning is defined by the customiser.

arg2:
An unsigned argument passed to a user customised function.  Its
meaning is defined by the customiser.

argx:
An array of bytes passed to a user customised function.
Its meaning and content is defined by the customiser.

baud:
The speed of serial communication (I2C, SPI, serial link, waves)
in bits per second.

bb_bits: 1-32
The number of data bits to be used when adding serial data to a
waveform.

bb_stop: 2-8
The number of (half) stop bits to be used when adding serial data
to a waveform.

bit: 0-1
A value of 0 or 1.

bits: 32 bit number
A mask used to select GPIO to be operated on.  If bit n is set
then GPIO n is selected.  A convenient way of setting bit n is to
bit or in the value (1<<n).

To select GPIO 1, 7, 23

bits = (1<<1) | (1<<7) | (1<<23)

bsc_control:

. .
22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
 a  a  a  a  a  a  a  -  - IT HC TF IR RE TE BK EC ES PL PH I2 SP EN
. .

aaaaaaa defines the I2C slave address (only relevant in I2C mode)

Bits 0-13 are copied unchanged to the BSC CR register.  See
pages 163-165 of the Broadcom peripherals document.

byte_val: 0-255
A whole number.

clkfreq: 4689-250M
The hardware clock frequency.

connected:
True if a connection was established, False otherwise.

count:
The number of bytes of data to be transferred.

CS:
The GPIO used for the slave select signal when bit banging SPI.

data:
Data to be transmitted, a series of bytes.

delay: >=1
The length of a pulse in microseconds.

dutycycle: 0-range_
A number between 0 and range_.

The dutycycle sets the proportion of time on versus time off during each
PWM cycle.

Dutycycle     @ On time
0             @ Off
range_ * 0.25 @ 25% On
range_ * 0.50 @ 50% On
range_ * 0.75 @ 75% On
range_        @ Fully On

edge: 0-2

. .
EITHER_EDGE = 2 
FALLING_EDGE = 1 
RISING_EDGE = 0
. .

errnum: <0

. .
PI_BAD_USER_GPIO = -2
PI_BAD_GPIO = -3
PI_BAD_MODE = -4
PI_BAD_LEVEL = -5
PI_BAD_PUD = -6
PI_BAD_PULSEWIDTH = -7
PI_BAD_DUTYCYCLE = -8
PI_BAD_WDOG_TIMEOUT = -15
PI_BAD_DUTYRANGE = -21
PI_NO_HANDLE = -24
PI_BAD_HANDLE = -25
PI_BAD_WAVE_BAUD = -35
PI_TOO_MANY_PULSES = -36
PI_TOO_MANY_CHARS = -37
PI_NOT_SERIAL_GPIO = -38
PI_NOT_PERMITTED = -41
PI_SOME_PERMITTED = -42
PI_BAD_WVSC_COMMND = -43
PI_BAD_WVSM_COMMND = -44
PI_BAD_WVSP_COMMND = -45
PI_BAD_PULSELEN = -46
PI_BAD_SCRIPT = -47
PI_BAD_SCRIPT_ID = -48
PI_BAD_SER_OFFSET = -49
PI_GPIO_IN_USE = -50
PI_BAD_SERIAL_COUNT = -51
PI_BAD_PARAM_NUM = -52
PI_DUP_TAG = -53
PI_TOO_MANY_TAGS = -54
PI_BAD_SCRIPT_CMD = -55
PI_BAD_VAR_NUM = -56
PI_NO_SCRIPT_ROOM = -57
PI_NO_MEMORY = -58
PI_SOCK_READ_FAILED = -59
PI_SOCK_WRIT_FAILED = -60
PI_TOO_MANY_PARAM = -61
PI_SCRIPT_NOT_READY = -62
PI_BAD_TAG = -63
PI_BAD_MICS_DELAY = -64
PI_BAD_MILS_DELAY = -65
PI_BAD_WAVE_ID = -66
PI_TOO_MANY_CBS = -67
PI_TOO_MANY_OOL = -68
PI_EMPTY_WAVEFORM = -69
PI_NO_WAVEFORM_ID = -70
PI_I2C_OPEN_FAILED = -71
PI_SER_OPEN_FAILED = -72
PI_SPI_OPEN_FAILED = -73
PI_BAD_I2C_BUS = -74
PI_BAD_I2C_ADDR = -75
PI_BAD_SPI_CHANNEL = -76
PI_BAD_FLAGS = -77
PI_BAD_SPI_SPEED = -78
PI_BAD_SER_DEVICE = -79
PI_BAD_SER_SPEED = -80
PI_BAD_PARAM = -81
PI_I2C_WRITE_FAILED = -82
PI_I2C_READ_FAILED = -83
PI_BAD_SPI_COUNT = -84
PI_SER_WRITE_FAILED = -85
PI_SER_READ_FAILED = -86
PI_SER_READ_NO_DATA = -87
PI_UNKNOWN_COMMAND = -88
PI_SPI_XFER_FAILED = -89
PI_NO_AUX_SPI = -91
PI_NOT_PWM_GPIO = -92
PI_NOT_SERVO_GPIO = -93
PI_NOT_HCLK_GPIO = -94
PI_NOT_HPWM_GPIO = -95
PI_BAD_HPWM_FREQ = -96
PI_BAD_HPWM_DUTY = -97
PI_BAD_HCLK_FREQ = -98
PI_BAD_HCLK_PASS = -99
PI_HPWM_ILLEGAL = -100
PI_BAD_DATABITS = -101
PI_BAD_STOPBITS = -102
PI_MSG_TOOBIG = -103
PI_BAD_MALLOC_MODE = -104
PI_BAD_SMBUS_CMD = -107
PI_NOT_I2C_GPIO = -108
PI_BAD_I2C_WLEN = -109
PI_BAD_I2C_RLEN = -110
PI_BAD_I2C_CMD = -111
PI_BAD_I2C_BAUD = -112
PI_CHAIN_LOOP_CNT = -113
PI_BAD_CHAIN_LOOP = -114
PI_CHAIN_COUNTER = -115
PI_BAD_CHAIN_CMD = -116
PI_BAD_CHAIN_DELAY = -117
PI_CHAIN_NESTING = -118
PI_CHAIN_TOO_BIG = -119
PI_DEPRECATED = -120
PI_BAD_SER_INVERT = -121
PI_BAD_FOREVER = -124
PI_BAD_FILTER = -125
PI_BAD_PAD = -126
PI_BAD_STRENGTH = -127
PI_FIL_OPEN_FAILED = -128
PI_BAD_FILE_MODE = -129
PI_BAD_FILE_FLAG = -130
PI_BAD_FILE_READ = -131
PI_BAD_FILE_WRITE = -132
PI_FILE_NOT_ROPEN = -133
PI_FILE_NOT_WOPEN = -134
PI_BAD_FILE_SEEK = -135
PI_NO_FILE_MATCH = -136
PI_NO_FILE_ACCESS = -137
PI_FILE_IS_A_DIR = -138
PI_BAD_SHELL_STATUS = -139
PI_BAD_SCRIPT_NAME = -140
PI_BAD_SPI_BAUD = -141
PI_NOT_SPI_GPIO = -142
PI_BAD_EVENT_ID = -143
PI_CMD_INTERRUPTED = -144
. .

event:0-31
An event is a signal used to inform one or more consumers
to start an action.

file_mode:
The mode may have the following values

. .
FILE_READ   1
FILE_WRITE  2
FILE_RW     3
. .

The following values can be or'd into the file open mode

. .
FILE_APPEND 4
FILE_CREATE 8
FILE_TRUNC  16
. .

file_name:
A full file path.  To be accessible the path must match
an entry in /opt/pigpio/access.

fpattern:
A file path which may contain wildcards.  To be accessible the path
must match an entry in /opt/pigpio/access.

frequency: 0-40000
Defines the frequency to be used for PWM on a GPIO.
The closest permitted frequency will be used.

func:
A user supplied callback function.

gpio: 0-53
A Broadcom numbered GPIO.  All the user GPIO are in the range 0-31.

There  are 54 General Purpose Input Outputs (GPIO) named GPIO0
through GPIO53.

They are split into two  banks.   Bank  1  consists  of  GPIO0
through GPIO31.  Bank 2 consists of GPIO32 through GPIO53.

All the GPIO which are safe for the user to read and write are in
bank 1.  Not all GPIO in bank 1 are safe though.  Type 1 boards
have 17  safe GPIO.  Type 2 boards have 21.  Type 3 boards have 26.

See [*get_hardware_revision*].

The user GPIO are marked with an X in the following table

. .
          0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
Type 1    X  X  -  -  X  -  -  X  X  X  X  X  -  -  X  X
Type 2    -  -  X  X  X  -  -  X  X  X  X  X  -  -  X  X
Type 3          X  X  X  X  X  X  X  X  X  X  X  X  X  X

         16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type 1    -  X  X  -  -  X  X  X  X  X  -  -  -  -  -  -
Type 2    -  X  X  -  -  -  X  X  X  X  -  X  X  X  X  X
Type 3    X  X  X  X  X  X  X  X  X  X  X  X  -  -  -  -
. .

gpio_off:
A mask used to select GPIO to be operated on.  See [*bits*].

This mask selects the GPIO to be switched off at the start
of a pulse.

gpio_on:
A mask used to select GPIO to be operated on.  See [*bits*].

This mask selects the GPIO to be switched on at the start
of a pulse.

handle: >=0
A number referencing an object opened by one of the following

[*file_open*] 
[*i2c_open*] 
[*notify_open*] 
[*serial_open*] 
[*spi_open*]

host:
The name or IP address of the Pi running the pigpio daemon.

i2c_*:
One of the i2c_ functions.

i2c_address: 0-0x7F
The address of a device on the I2C bus.

i2c_bus: >=0
An I2C bus number.

i2c_flags: 0
No I2C flags are currently defined.

invert: 0-1
A flag used to set normal or inverted bit bang serial data
level logic.

level: 0-1 (2)

. .
CLEAR = 0 
HIGH = 1 
LOW = 0 
OFF = 0 
ON = 1 
SET = 1 
TIMEOUT = 2 # only returned for a watchdog timeout
. .

MISO:
The GPIO used for the MISO signal when bit banging SPI.

mode:

1.The operational mode of a GPIO, normally INPUT or OUTPUT.

. .
ALT0 = 4 
ALT1 = 5 
ALT2 = 6 
ALT3 = 7 
ALT4 = 3 
ALT5 = 2 
INPUT = 0 
OUTPUT = 1
. .

2. The mode of waveform transmission.

. .
WAVE_MODE_ONE_SHOT = 0 
WAVE_MODE_REPEAT = 1 
WAVE_MODE_ONE_SHOT_SYNC = 2 
WAVE_MODE_REPEAT_SYNC = 3
. .

MOSI:
The GPIO used for the MOSI signal when bit banging SPI.

offset: >=0
The offset wave data starts from the beginning of the waveform
being currently defined.

pad: 0-2
A set of GPIO which share common drivers.

Pad @  GPIO
0   @  0-27
1   @  28-45
2   @  46-53

pad_strength: 1-16
The mA which may be drawn from each GPIO whilst still guaranteeing the
high and low levels.

params: 32 bit number
When scripts are started they can receive up to 10 parameters
to define their operation.

port: 
The port used by the pigpio daemon, defaults to 8888.

pstring:
The string to be passed to a [*shell*] script to be executed.

pud: 0-2
. .
PUD_DOWN = 1 
PUD_OFF = 0 
PUD_UP = 2 
. .

pulse_len: 1-100
The length of the trigger pulse in microseconds.

pulses:
A list of class pulse objects defining the characteristics of a
waveform.

pulsewidth:
The servo pulsewidth in microseconds.  0 switches pulses off.

PWMduty: 0-1000000 (1M)
The hardware PWM dutycycle.

PWMfreq: 1-125000000 (125M)
The hardware PWM frequency.

range_: 25-40000
Defines the limits for the [*dutycycle*] parameter.

range_ defaults to 255.

reg: 0-255
An I2C device register.  The usable registers depend on the
actual device.

retMax: >=0
The maximum number of bytes a user customised function
should return, default 8192.

SCL:
The user GPIO to use for the clock when bit banging I2C.

SCLK::
The GPIO used for the SCLK signal when bit banging SPI.

script:
The text of a script to store on the pigpio daemon.

script_id: >=0
A number referencing a script created by [*store_script*].

SDA:
The user GPIO to use for data when bit banging I2C.

seek_from: 0-2
Direction to seek for [*file_seek*].

. .
FROM_START=0 
FROM_CURRENT=1 
FROM_END=2 
. .

seek_offset:
The number of bytes to move forward (positive) or backwards
(negative) from the seek position (start, current, or end of file).

ser_flags: 32 bit
No serial flags are currently defined.

serial_*:
One of the serial_ functions.

shellscr:
The name of a shell script.  The script must exist
in /opt/pigpio/cgi and must be executable.

show_errors:
Controls the display of pigpio daemon connection failures.
The default of True prints the probable failure reasons to
standard output.

spi_*:
One of the spi_ functions.

spi_channel: 0-2
A SPI channel.

spi_flags: 32 bit
See [*spi_open*].

steady: 0-300000

The number of microseconds level changes must be stable for
before reporting the level changed ([*set_glitch_filter*])
or triggering the active part of a noise filter
([*set_noise_filter*]).

t1:
A tick (earlier).

t2:
A tick (later).

tty:
A Pi serial tty device, e.g. /dev/ttyAMA0, /dev/ttyUSB0

uint32:
An unsigned 32 bit number.

user_gpio: 0-31
A Broadcom numbered GPIO.

All the user GPIO are in the range 0-31.

Not all the GPIO within this range are usable, some are reserved
for system use.

See [*gpio*].

wait_timeout: 0.0 -
The number of seconds to wait in [*wait_for_edge*] before timing out.

wave_add_*:
One of the following

[*wave_add_new*] 
[*wave_add_generic*] 
[*wave_add_serial*]

wave_id: >=0
A number referencing a wave created by [*wave_create*].

wave_send_*:
One of the following

[*wave_send_once*] 
[*wave_send_repeat*]

wdog_timeout: 0-60000
Defines a GPIO watchdog timeout in milliseconds.  If no level
change is detected on the GPIO for timeout millisecond a watchdog
timeout report is issued (with level TIMEOUT).

word_val: 0-65535
A whole number.

Definition at line 5111 of file pigpio.py.


Variable Documentation

Definition at line 695 of file pigpio.py.

Initial value:
00001 """
00002 Did you start the pigpio daemon? E.g. sudo pigpiod
00003 
00004 Did you specify the correct Pi host/port in the environment
00005 variables PIGPIO_ADDR/PIGPIO_PORT?
00006 E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
00007 
00008 Did you specify the correct Pi host/port in the
00009 pigpio.pi() function? E.g. pigpio.pi('soft', 8888)"""

Definition at line 844 of file pigpio.py.

Initial value:
00001 """
00002 Do you have permission to access the pigpio daemon?
00003 Perhaps it was started with sudo pigpiod -nlocalhost"""

Definition at line 854 of file pigpio.py.

Initial value:
00001 """
00002 Can't create callback thread.
00003 Perhaps too many simultaneous pigpio connections."""

Definition at line 858 of file pigpio.py.

string pigpio::_except_a = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n{}"

Definition at line 840 of file pigpio.py.

string pigpio::_except_z = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"

Definition at line 842 of file pigpio.py.

Definition at line 566 of file pigpio.py.

Definition at line 581 of file pigpio.py.

Definition at line 573 of file pigpio.py.

Definition at line 565 of file pigpio.py.

Definition at line 563 of file pigpio.py.

Definition at line 564 of file pigpio.py.

Definition at line 669 of file pigpio.py.

Definition at line 576 of file pigpio.py.

Definition at line 653 of file pigpio.py.

Definition at line 572 of file pigpio.py.

Definition at line 670 of file pigpio.py.

Definition at line 559 of file pigpio.py.

Definition at line 556 of file pigpio.py.

Definition at line 569 of file pigpio.py.

Definition at line 637 of file pigpio.py.

Definition at line 574 of file pigpio.py.

Definition at line 577 of file pigpio.py.

Definition at line 558 of file pigpio.py.

Definition at line 587 of file pigpio.py.

Definition at line 586 of file pigpio.py.

Definition at line 568 of file pigpio.py.

Definition at line 575 of file pigpio.py.

Definition at line 555 of file pigpio.py.

Definition at line 557 of file pigpio.py.

Definition at line 580 of file pigpio.py.

Definition at line 410 of file pigpio.py.

Definition at line 411 of file pigpio.py.

Definition at line 504 of file pigpio.py.

Definition at line 505 of file pigpio.py.

Definition at line 506 of file pigpio.py.

Definition at line 408 of file pigpio.py.

Definition at line 409 of file pigpio.py.

Definition at line 412 of file pigpio.py.

Definition at line 413 of file pigpio.py.

Definition at line 538 of file pigpio.py.

Definition at line 534 of file pigpio.py.

Definition at line 535 of file pigpio.py.

Definition at line 536 of file pigpio.py.

Definition at line 499 of file pigpio.py.

Definition at line 500 of file pigpio.py.

Definition at line 514 of file pigpio.py.

Definition at line 515 of file pigpio.py.

Definition at line 540 of file pigpio.py.

Definition at line 541 of file pigpio.py.

int pigpio::_PI_CMD_FC = 105

Definition at line 527 of file pigpio.py.

Definition at line 517 of file pigpio.py.

int pigpio::_PI_CMD_FL = 109

Definition at line 531 of file pigpio.py.

Definition at line 518 of file pigpio.py.

int pigpio::_PI_CMD_FO = 104

Definition at line 526 of file pigpio.py.

int pigpio::_PI_CMD_FR = 106

Definition at line 528 of file pigpio.py.

int pigpio::_PI_CMD_FS = 108

Definition at line 530 of file pigpio.py.

int pigpio::_PI_CMD_FW = 107

Definition at line 529 of file pigpio.py.

Definition at line 493 of file pigpio.py.

Definition at line 494 of file pigpio.py.

Definition at line 496 of file pigpio.py.

Definition at line 425 of file pigpio.py.

Definition at line 497 of file pigpio.py.

Definition at line 415 of file pigpio.py.

Definition at line 462 of file pigpio.py.

Definition at line 461 of file pigpio.py.

Definition at line 476 of file pigpio.py.

Definition at line 477 of file pigpio.py.

Definition at line 468 of file pigpio.py.

Definition at line 463 of file pigpio.py.

Definition at line 474 of file pigpio.py.

Definition at line 472 of file pigpio.py.

Definition at line 466 of file pigpio.py.

Definition at line 470 of file pigpio.py.

Definition at line 469 of file pigpio.py.

Definition at line 464 of file pigpio.py.

Definition at line 475 of file pigpio.py.

Definition at line 473 of file pigpio.py.

Definition at line 465 of file pigpio.py.

Definition at line 467 of file pigpio.py.

Definition at line 471 of file pigpio.py.

Definition at line 508 of file pigpio.py.

Definition at line 451 of file pigpio.py.

Definition at line 452 of file pigpio.py.

Definition at line 399 of file pigpio.py.

Definition at line 398 of file pigpio.py.

Definition at line 418 of file pigpio.py.

Definition at line 420 of file pigpio.py.

Definition at line 417 of file pigpio.py.

Definition at line 502 of file pigpio.py.

Definition at line 419 of file pigpio.py.

Definition at line 524 of file pigpio.py.

Definition at line 523 of file pigpio.py.

Definition at line 453 of file pigpio.py.

Definition at line 423 of file pigpio.py.

Definition at line 405 of file pigpio.py.

Definition at line 426 of file pigpio.py.

Definition at line 422 of file pigpio.py.

Definition at line 441 of file pigpio.py.

Definition at line 442 of file pigpio.py.

Definition at line 450 of file pigpio.py.

Definition at line 443 of file pigpio.py.

Definition at line 444 of file pigpio.py.

Definition at line 543 of file pigpio.py.

Definition at line 424 of file pigpio.py.

Definition at line 404 of file pigpio.py.

Definition at line 400 of file pigpio.py.

Definition at line 403 of file pigpio.py.

Definition at line 401 of file pigpio.py.

Definition at line 486 of file pigpio.py.

Definition at line 491 of file pigpio.py.

Definition at line 485 of file pigpio.py.

Definition at line 489 of file pigpio.py.

Definition at line 487 of file pigpio.py.

Definition at line 406 of file pigpio.py.

Definition at line 490 of file pigpio.py.

Definition at line 488 of file pigpio.py.

Definition at line 532 of file pigpio.py.

Definition at line 447 of file pigpio.py.

Definition at line 448 of file pigpio.py.

Definition at line 512 of file pigpio.py.

Definition at line 446 of file pigpio.py.

Definition at line 480 of file pigpio.py.

Definition at line 479 of file pigpio.py.

Definition at line 481 of file pigpio.py.

Definition at line 482 of file pigpio.py.

Definition at line 483 of file pigpio.py.

Definition at line 414 of file pigpio.py.

Definition at line 439 of file pigpio.py.

Definition at line 407 of file pigpio.py.

Definition at line 402 of file pigpio.py.

Definition at line 429 of file pigpio.py.

Definition at line 430 of file pigpio.py.

Definition at line 433 of file pigpio.py.

Definition at line 510 of file pigpio.py.

Definition at line 428 of file pigpio.py.

Definition at line 455 of file pigpio.py.

Definition at line 456 of file pigpio.py.

Definition at line 431 of file pigpio.py.

Definition at line 432 of file pigpio.py.

Definition at line 434 of file pigpio.py.

Definition at line 459 of file pigpio.py.

Definition at line 437 of file pigpio.py.

Definition at line 435 of file pigpio.py.

Definition at line 436 of file pigpio.py.

Definition at line 521 of file pigpio.py.

Definition at line 457 of file pigpio.py.

Definition at line 520 of file pigpio.py.

Definition at line 458 of file pigpio.py.

Definition at line 547 of file pigpio.py.

Definition at line 579 of file pigpio.py.

Definition at line 562 of file pigpio.py.

Definition at line 578 of file pigpio.py.

Definition at line 560 of file pigpio.py.

Definition at line 652 of file pigpio.py.

Definition at line 394 of file pigpio.py.

int pigpio::ALT0 = 4

Definition at line 329 of file pigpio.py.

int pigpio::ALT1 = 5

Definition at line 330 of file pigpio.py.

int pigpio::ALT2 = 6

Definition at line 331 of file pigpio.py.

int pigpio::ALT3 = 7

Definition at line 332 of file pigpio.py.

int pigpio::ALT4 = 3

Definition at line 333 of file pigpio.py.

int pigpio::ALT5 = 2

Definition at line 334 of file pigpio.py.

int pigpio::CLEAR = 0

Definition at line 311 of file pigpio.py.

Definition at line 323 of file pigpio.py.

Definition at line 392 of file pigpio.py.

Definition at line 305 of file pigpio.py.

Definition at line 322 of file pigpio.py.

Definition at line 371 of file pigpio.py.

Definition at line 372 of file pigpio.py.

Definition at line 367 of file pigpio.py.

int pigpio::FILE_RW = 3

Definition at line 369 of file pigpio.py.

Definition at line 373 of file pigpio.py.

Definition at line 368 of file pigpio.py.

Definition at line 376 of file pigpio.py.

Definition at line 377 of file pigpio.py.

Definition at line 375 of file pigpio.py.

int pigpio::HIGH = 1

Definition at line 314 of file pigpio.py.

int pigpio::INPUT = 0

Definition at line 327 of file pigpio.py.

int pigpio::LOW = 0

Definition at line 310 of file pigpio.py.

int pigpio::NO_TX_WAVE = 9999

Definition at line 365 of file pigpio.py.

tuple pigpio::NTFY_FLAGS_ALIVE = (1 << 6)

Definition at line 353 of file pigpio.py.

tuple pigpio::NTFY_FLAGS_EVENT = (1 << 7)

Definition at line 352 of file pigpio.py.

Definition at line 355 of file pigpio.py.

tuple pigpio::NTFY_FLAGS_WDOG = (1 << 5)

Definition at line 354 of file pigpio.py.

int pigpio::OFF = 0

Definition at line 309 of file pigpio.py.

int pigpio::ON = 1

Definition at line 313 of file pigpio.py.

int pigpio::OUTPUT = 1

Definition at line 328 of file pigpio.py.

Definition at line 663 of file pigpio.py.

Definition at line 664 of file pigpio.py.

Definition at line 661 of file pigpio.py.

Definition at line 648 of file pigpio.py.

Definition at line 554 of file pigpio.py.

Definition at line 567 of file pigpio.py.

Definition at line 690 of file pigpio.py.

Definition at line 677 of file pigpio.py.

Definition at line 676 of file pigpio.py.

Definition at line 678 of file pigpio.py.

Definition at line 682 of file pigpio.py.

Definition at line 679 of file pigpio.py.

Definition at line 672 of file pigpio.py.

Definition at line 624 of file pigpio.py.

Definition at line 671 of file pigpio.py.

Definition at line 549 of file pigpio.py.

Definition at line 571 of file pigpio.py.

Definition at line 645 of file pigpio.py.

Definition at line 646 of file pigpio.py.

Definition at line 644 of file pigpio.py.

Definition at line 643 of file pigpio.py.

Definition at line 622 of file pigpio.py.

Definition at line 659 of file pigpio.py.

Definition at line 621 of file pigpio.py.

Definition at line 658 of file pigpio.py.

Definition at line 657 of file pigpio.py.

Definition at line 656 of file pigpio.py.

Definition at line 551 of file pigpio.py.

Definition at line 651 of file pigpio.py.

Definition at line 611 of file pigpio.py.

Definition at line 612 of file pigpio.py.

Definition at line 550 of file pigpio.py.

int pigpio::PI_BAD_PAD = 126

Definition at line 673 of file pigpio.py.

Definition at line 628 of file pigpio.py.

Definition at line 599 of file pigpio.py.

Definition at line 552 of file pigpio.py.

Definition at line 593 of file pigpio.py.

Definition at line 553 of file pigpio.py.

Definition at line 594 of file pigpio.py.

Definition at line 602 of file pigpio.py.

Definition at line 595 of file pigpio.py.

Definition at line 687 of file pigpio.py.

Definition at line 626 of file pigpio.py.

Definition at line 668 of file pigpio.py.

Definition at line 596 of file pigpio.py.

Definition at line 627 of file pigpio.py.

Definition at line 598 of file pigpio.py.

Definition at line 686 of file pigpio.py.

Definition at line 654 of file pigpio.py.

Definition at line 688 of file pigpio.py.

Definition at line 623 of file pigpio.py.

Definition at line 631 of file pigpio.py.

Definition at line 625 of file pigpio.py.

Definition at line 649 of file pigpio.py.

Definition at line 674 of file pigpio.py.

Definition at line 610 of file pigpio.py.

Definition at line 548 of file pigpio.py.

Definition at line 603 of file pigpio.py.

Definition at line 582 of file pigpio.py.

Definition at line 613 of file pigpio.py.

Definition at line 561 of file pigpio.py.

Definition at line 590 of file pigpio.py.

Definition at line 591 of file pigpio.py.

Definition at line 592 of file pigpio.py.

Definition at line 662 of file pigpio.py.

Definition at line 660 of file pigpio.py.

Definition at line 665 of file pigpio.py.

Definition at line 666 of file pigpio.py.

Definition at line 691 of file pigpio.py.

Definition at line 667 of file pigpio.py.

Definition at line 600 of file pigpio.py.

Definition at line 616 of file pigpio.py.

Definition at line 675 of file pigpio.py.

Definition at line 685 of file pigpio.py.

Definition at line 680 of file pigpio.py.

Definition at line 681 of file pigpio.py.

Definition at line 597 of file pigpio.py.

Definition at line 647 of file pigpio.py.

Definition at line 618 of file pigpio.py.

Definition at line 630 of file pigpio.py.

Definition at line 629 of file pigpio.py.

Definition at line 650 of file pigpio.py.

Definition at line 638 of file pigpio.py.

Definition at line 684 of file pigpio.py.

Definition at line 683 of file pigpio.py.

Definition at line 570 of file pigpio.py.

Definition at line 605 of file pigpio.py.

Definition at line 604 of file pigpio.py.

Definition at line 617 of file pigpio.py.

Definition at line 641 of file pigpio.py.

Definition at line 642 of file pigpio.py.

Definition at line 655 of file pigpio.py.

Definition at line 588 of file pigpio.py.

Definition at line 639 of file pigpio.py.

Definition at line 585 of file pigpio.py.

Definition at line 640 of file pigpio.py.

Definition at line 689 of file pigpio.py.

Definition at line 348 of file pigpio.py.

Definition at line 345 of file pigpio.py.

Definition at line 344 of file pigpio.py.

Definition at line 609 of file pigpio.py.

Definition at line 346 of file pigpio.py.

Definition at line 347 of file pigpio.py.

Definition at line 619 of file pigpio.py.

Definition at line 633 of file pigpio.py.

Definition at line 634 of file pigpio.py.

Definition at line 632 of file pigpio.py.

Definition at line 606 of file pigpio.py.

Definition at line 607 of file pigpio.py.

Definition at line 589 of file pigpio.py.

Definition at line 620 of file pigpio.py.

Definition at line 636 of file pigpio.py.

Definition at line 614 of file pigpio.py.

Definition at line 584 of file pigpio.py.

Definition at line 615 of file pigpio.py.

Definition at line 608 of file pigpio.py.

Definition at line 583 of file pigpio.py.

Definition at line 601 of file pigpio.py.

Definition at line 635 of file pigpio.py.

Definition at line 339 of file pigpio.py.

int pigpio::PUD_OFF = 0

Definition at line 338 of file pigpio.py.

int pigpio::PUD_UP = 2

Definition at line 340 of file pigpio.py.

Definition at line 321 of file pigpio.py.

int pigpio::SET = 1

Definition at line 315 of file pigpio.py.

Definition at line 384 of file pigpio.py.

Definition at line 385 of file pigpio.py.

Definition at line 387 of file pigpio.py.

Definition at line 379 of file pigpio.py.

Definition at line 380 of file pigpio.py.

Definition at line 381 of file pigpio.py.

Definition at line 382 of file pigpio.py.

Definition at line 390 of file pigpio.py.

Definition at line 389 of file pigpio.py.

int pigpio::TIMEOUT = 2

Definition at line 317 of file pigpio.py.

string pigpio::VERSION = "1.41"

Definition at line 303 of file pigpio.py.

Definition at line 359 of file pigpio.py.

Definition at line 361 of file pigpio.py.

Definition at line 360 of file pigpio.py.

Definition at line 362 of file pigpio.py.

Definition at line 364 of file pigpio.py.



cob_hand_bridge
Author(s): Mathias L├╝dtke
autogenerated on Thu Jun 6 2019 20:43:57