Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new function setAllPWM #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

matrix1000
Copy link

new function setAllPWM for setting the pwm off all ports of the PCA9685 at the same time

Usefull if you want to change the PWM state of all pins at the same.

@caternuson
Copy link
Contributor

Hey @matrix1000 , sorry this got missed. If you're still interested in submitting this PR, can you please update the I2C code to use BusIO. These lines would need to be changed:

  _i2c->beginTransmission(_i2caddr);
  _i2c->write(PCA9685_ALLLED_ON_L);
  _i2c->write(on);
  _i2c->write(on >> 8);
  _i2c->write(off);
  _i2c->write(off >> 8);
  _i2c->endTransmission();

Can use the code in setPWM() as an example for how to do the I2C with BusIO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants