keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

LED_PCA9655E.cpp 418B

1234567891011121314151617
  1. #include "LED_PCA9655E.h"
  2. void LED_PCA9655E::on()
  3. {
  4. Wire.beginTransmission(port.ADDR);
  5. Wire.write(outputByteCommand);
  6. Wire.write(port.outputVal |= pin); //set pin high
  7. Wire.endTransmission();
  8. }
  9. void LED_PCA9655E::off()
  10. {
  11. Wire.beginTransmission(port.ADDR);
  12. Wire.write(outputByteCommand);
  13. Wire.write(port.outputVal &= ~pin); //set pin low
  14. Wire.endTransmission();
  15. }