|
|
@ -67,7 +67,7 @@ uint8_t Model100Side::controllerAddress() {
|
|
|
|
// https://www.arduino.cc/en/Reference/WireEndTransmission
|
|
|
|
// https://www.arduino.cc/en/Reference/WireEndTransmission
|
|
|
|
byte Model100Side::setKeyscanInterval(byte delay) {
|
|
|
|
byte Model100Side::setKeyscanInterval(byte delay) {
|
|
|
|
uint8_t data[] = {TWI_CMD_KEYSCAN_INTERVAL, delay};
|
|
|
|
uint8_t data[] = {TWI_CMD_KEYSCAN_INTERVAL, delay};
|
|
|
|
uint8_t result = writeData( data, ELEMENTS(data));
|
|
|
|
uint8_t result = writeData(data, ELEMENTS(data));
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -103,9 +103,9 @@ byte Model100Side::setLEDSPIFrequency(byte frequency) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t Model100Side::writeData(uint8_t *data,uint8_t length) {
|
|
|
|
uint8_t Model100Side::writeData(uint8_t *data, uint8_t length) {
|
|
|
|
Wire.beginTransmission(addr);
|
|
|
|
Wire.beginTransmission(addr);
|
|
|
|
Wire.write( data, length);
|
|
|
|
Wire.write(data, length);
|
|
|
|
uint8_t result = Wire.endTransmission();
|
|
|
|
uint8_t result = Wire.endTransmission();
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|