NAME

Device::PWMGenerator::PCA9685 - I2C interface to PWM Generator on PCA9685 using Device::SMBus

VERSION

version 0.004

ATTRIBUTES

I2CDeviceAddress

Contains the I2CDevice Address for the bus on which your PWM Generator is connected. It would look like 0x40. Default value is 0x40, If you have not set any of the six jumpers on the PCA9685, this should be the correct address and you will not have to modify this value in most cases.

Frequency

Frequency of the PWM Pulse in Hz

METHODS

enable

$self->enable()

This function is just a placeholder. It is not required to call this function for this particular chipset

setChannelPWM

$self->setChannelPWM($channel,$pulseOnPoint,$pulseOffPoint)
The PCA9685 offers a 12 bit resolution which means across a duty cycle you may set and unset the PWM at 4096 different point. 
Range of values for $pulseOnPoint and $pulseOffPoint is 0 to 4095
Range of values of $channel is 0 to 15

REGISTERS

MODE1

SUBADR1

SUBADR2

SUBADR3

PRESCALE

LED0_ON_L

LED0_ON_H

LED0_OFF_L

LED0_OFF_H

LED0_OFF_H

AUTHOR

Shantanu Bhadoria <shantanu at cpan dott org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Shantanu Bhadoria.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.