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
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
Usage:
$assistant->intercept(gpio => 18, pud => 0);