NAME
PINE64::PCF8574 - Perl interface to the PCF8574 GPIO extender
SYNOPSIS
use PINE64::PCF8574;
my $gpext = PCF8574->new(0x20);
#turn on 8 LEDs in order and then turn them off
for(my $i=0;$i<8;$i++){
$gpext->write_pin($i, 0);
sleep(1);
$gpext->write_pin($i, 1);
}#end for
for(my $i=7;$i>=0;$i--){
$gpext->write_pin($i, 0);
sleep(1);
$gpext->write_pin($i, 1);
}#end for
METHODS
write_pin($pin, $value)
Sets GPIO $pin to $value.
read_pin($pin)
Returns the value of $pin.