Device::PWMGenerator::PCA9685 - I2C interface to PWM Generator on PCA9685 using Device::SMBus
version 0.001
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 of the PWM Pulse in Hz
$self->enable()
This function is just a placeholder. It is not required to call this function for this particular chipset
$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
Shantanu Bhadoria <shantanu at cpan dott org>
This software is copyright (c) 2013 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.
To install Device::PCA9685, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::PCA9685
CPAN shell
perl -MCPAN -e shell install Device::PCA9685
For more information on module installation, please visit the detailed CPAN module installation guide.