|
|
@ -40,9 +40,9 @@ void Model01::led_set_crgb_at(uint8_t i, cRGB crgb) {
|
|
|
|
// controller2.ledData.leds[i] = color;
|
|
|
|
// controller2.ledData.leds[i] = color;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
rightHand.ledData.leds[i-32] = crgb;
|
|
|
|
rightHand.ledData.leds[i-32] = crgb;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -68,19 +68,19 @@ void Model01::led_sync() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void debug_key_event(keydata_t state, keydata_t previousState, uint8_t keynum, uint8_t row, uint8_t col) {
|
|
|
|
void debug_key_event(keydata_t state, keydata_t previousState, uint8_t keynum, uint8_t row, uint8_t col) {
|
|
|
|
if (bitRead(state.all, keynum) != bitRead(previousState.all, keynum )) {
|
|
|
|
if (bitRead(state.all, keynum) != bitRead(previousState.all, keynum )) {
|
|
|
|
Serial.print("Looking at row ");
|
|
|
|
Serial.print("Looking at row ");
|
|
|
|
Serial.print(row);
|
|
|
|
Serial.print(row);
|
|
|
|
Serial.print(", col ");
|
|
|
|
Serial.print(", col ");
|
|
|
|
Serial.print(col);
|
|
|
|
Serial.print(col);
|
|
|
|
Serial.print(" key # ");
|
|
|
|
Serial.print(" key # ");
|
|
|
|
Serial.print(keynum);
|
|
|
|
Serial.print(keynum);
|
|
|
|
Serial.print(" ");
|
|
|
|
Serial.print(" ");
|
|
|
|
Serial.print(bitRead(previousState.all, keynum));
|
|
|
|
Serial.print(bitRead(previousState.all, keynum));
|
|
|
|
Serial.print(" -> ");
|
|
|
|
Serial.print(" -> ");
|
|
|
|
Serial.print(bitRead(state.all, keynum ));
|
|
|
|
Serial.print(bitRead(state.all, keynum ));
|
|
|
|
Serial.println();
|
|
|
|
Serial.println();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void Model01::scan_matrix() {
|
|
|
|
void Model01::scan_matrix() {
|
|
|
|
previousLeftHandState = leftHandState;
|
|
|
|
previousLeftHandState = leftHandState;
|
|
|
|