keybrd library is an open source library for creating custom-keyboard firmware.
您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
1234567891011121314151617 |
- #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();
- }
|