Bring in fuee's changes for DMA LED updates and improved touch input response time. Overhaul the slider and air sensor calibration methods to be better, more consistent, and no longer have 'sensitivity' parameters

This commit is contained in:
skogaby
2020-07-07 04:09:51 -05:00
parent b7955e99d7
commit 21575de9f0
16 changed files with 1668 additions and 136 deletions
-9
View File
@@ -27,12 +27,6 @@ void SerialProcessor::processConfigCommand(uint8_t* buf)
bytes[4] = led_off.r;
bytes[5] = led_off.g;
bytes[6] = led_off.b;
// slider sensitivity
bytes[7] = touchboard->getSensitivity();
// air sensitivity
bytes[8] = sensor->getAnalogSensitivity();
Serial.write(bytes, 200);
break;
@@ -49,13 +43,10 @@ void SerialProcessor::processConfigCommand(uint8_t* buf)
serialLeds->saveLights();
break;
case CMD_CALIBRATE_SLIDER:
touchboard->setSensitivity(buf[3]);
touchboard->calibrateKeys(true);
break;
case CMD_CALIBRATE_AIR_SENSORS:
sensor->setAnalogSensitivity(buf[3]);
sensor->recalibrate();
break;
case CMD_FACTORY_RESET:
// clear EEPROM and then reset the controller
for (int i = 0 ; i < EEPROM.length() ; i++)