Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/src/LED_PCA9655E.cpp
2016-05-09 08:05:08 -06:00

18 lines
418 B
C++

#include "LED_PCA9655E.h"
void LED_PCA9655E::on()
{
Wire.beginTransmission(port.ADDR);
Wire.write(outputByteCommand);
Wire.write(port.outputVal |= pin); //set pin high
Wire.endTransmission();
}
void LED_PCA9655E::off()
{
Wire.beginTransmission(port.ADDR);
Wire.write(outputByteCommand);
Wire.write(port.outputVal &= ~pin); //set pin low
Wire.endTransmission();
}