The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RPi::PIGPIO::LED - Turn on and off a led connected to the RaspberryPi GPIO

DESCRIPTION

Uses the pigpio C library turn on and off a led connected to a local or remote RapsberryPi

What this actually does is set the GPIO to output and allow you to set the levels to HI or LOW

METHODS

new

Create a new object

Usage:

    my $led = RPi::PIGPIO::LED->new($pi,$gpio);

Arguments: $pi - an instance of RPi::PIGPIO $gpio - GPIO number to which the LED is connected

on

Turn on the led

Usage :

    $led->on();

off

Turn off the led

Usage :

    $led->off();