Changes to accomodate new sensors
PB control -> 2d stick Extra -> cap lip sensor Bite -> force sensitive resistor Lever -> pot 2d Stick added
This commit is contained in:
parent
e8aeb26399
commit
b401b34bb4
8 changed files with 150 additions and 143 deletions
|
|
@ -12,7 +12,25 @@ void handleTestMode(state_t &state) {
|
|||
Serial.print("Buttons:");
|
||||
Serial.println(buttons, HEX);
|
||||
}
|
||||
/*
|
||||
Serial.print(">KnobE1aPin:");
|
||||
Serial.println(digitalRead(e1aPin));
|
||||
Serial.print(">KnobE2aPin:");
|
||||
Serial.println(digitalRead(e2aPin));
|
||||
Serial.print(">KnobE3aPin:");
|
||||
Serial.println(digitalRead(e3aPin));
|
||||
Serial.print(">KnobE4aPin:");
|
||||
Serial.println(digitalRead(e4aPin));
|
||||
|
||||
Serial.print(">KnobE1bPin:");
|
||||
Serial.println(digitalRead(e1bPin));
|
||||
Serial.print(">KnobE2bPin:");
|
||||
Serial.println(digitalRead(e2bPin));
|
||||
Serial.print(">KnobE3bPin:");
|
||||
Serial.println(digitalRead(e3bPin));
|
||||
Serial.print(">KnobE4bPin:");
|
||||
Serial.println(digitalRead(e4bPin));
|
||||
*/
|
||||
for (int i = 0; i < 4; i++) {
|
||||
int k = readKnob(i);
|
||||
if (k != 0) {
|
||||
|
|
@ -30,13 +48,6 @@ void handleTestMode(state_t &state) {
|
|||
oldKeys = keys;
|
||||
}
|
||||
|
||||
uint16_t util = utilTouched();
|
||||
if (util != oldUtil) {
|
||||
Serial.print("Util:");
|
||||
Serial.println(util, HEX);
|
||||
oldUtil = util;
|
||||
}
|
||||
|
||||
if (buttons == 0x01) {
|
||||
plotCap = !plotCap;
|
||||
}
|
||||
|
|
@ -46,18 +57,11 @@ void handleTestMode(state_t &state) {
|
|||
}
|
||||
|
||||
if (plotCap) {
|
||||
for (int i = 0; i < 12; i++) {
|
||||
Serial.print(">key");
|
||||
for (int i = 0; i < 7; i++) {
|
||||
Serial.print(">control");
|
||||
Serial.print(i);
|
||||
Serial.print(":");
|
||||
Serial.println(readTouchKey(i));
|
||||
}
|
||||
|
||||
for (int i = 0; i < 12; i++) {
|
||||
Serial.print(">util");
|
||||
Serial.print(i);
|
||||
Serial.print(":");
|
||||
Serial.println(readTouchRoller(i));
|
||||
Serial.println(readRawControl(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue