++ed by:
BINJOY CREDO SREZIC
1 non-PAUSE user
Author image Gligan Calin Horea
and 1 contributors

NAME

RPi::PIGPIO::Assistant - Methods for reverse engeniering devices

DESCRIPTION

This module is a helper that can be used to easely debug things on a GPIO

SYNOPSIS

You can use this one-liner to monitor level changes on a gpio

    perl -Ilib  -MRPi::PIGPIO::Assistant -e "RPi::PIGPIO::Assistant->new('192.168.1.23')->intercept(gpio => 18);"
    

Note: This example assumes that pigpiod is running on the Raspberry Pi with the IP address 192.168.1.23

METHODS

new

Creates a new RPi::PIGPIO::Assistant object

Params:

1. ip address of the Raspi running the pigpiod daemon
2. port on which pigpiod is listening (defaults to 8888)

or

1. an instance of a RPi::PIGPIO

intercept

Monitors a given GPIO for level changes

Params:

gpio => GPIO which you want to monitor (mandatory)
pud => Pull-up/down level to set for the given gpio, (optional) one of
0 => OFF
1 => DOWN
2 => UP

Usage:

    $assistant->intercept(gpio => 18, pud => 0);