Patch to fix some compiler warnings
This commit is contained in:
parent
48c5f3dddf
commit
bfd396c13a
3 changed files with 23 additions and 16 deletions
|
|
@ -88,13 +88,15 @@ static void PCA9632_WriteAllRegisters(const byte addr, const byte regadd, const
|
|||
Wire.endTransmission();
|
||||
}
|
||||
|
||||
static byte PCA9632_ReadRegister(const byte addr, const byte regadd) {
|
||||
Wire.beginTransmission(addr);
|
||||
Wire.write(regadd);
|
||||
const byte value = Wire.read();
|
||||
Wire.endTransmission();
|
||||
return value;
|
||||
}
|
||||
#if 0
|
||||
static byte PCA9632_ReadRegister(const byte addr, const byte regadd) {
|
||||
Wire.beginTransmission(addr);
|
||||
Wire.write(regadd);
|
||||
const byte value = Wire.read();
|
||||
Wire.endTransmission();
|
||||
return value;
|
||||
}
|
||||
#endif
|
||||
|
||||
void PCA9632_SetColor(const byte r, const byte g, const byte b) {
|
||||
if (!PCA_init) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue