Skip to content

Commit

Permalink
Changed wording from threshold to sensitivity in configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
thnikk committed Jan 31, 2022
1 parent 17a6108 commit e54aa85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ board = seeed_xiao
build_flags = -Dnumkeys=5 -Dnumleds=4 -Dneopin=0 -DDEBUG
lib_ignore = adafruit freetouch library

[env:2k-touch]
[env:MegaTouch]
board = adafruit_qt_py_m0
build_flags = -Dnumkeys=4 -Dnumleds=1 -Dneopin=PIN_NEOPIXEL -DTOUCH

[env:2k-touch-debug]
[env:MegaTouch-debug]
board = adafruit_qt_py_m0
build_flags = -Dnumkeys=4 -Dnumleds=1 -Dneopin=PIN_NEOPIXEL -DTOUCH -DDEBUG
10 changes: 5 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static uint8_t custColor[] = {224,192,224,192,224,192,224};
static uint8_t bpsCount;

// FreeTouch
static uint8_t threshold[] = { 175, 175, 150, 100 };
static uint8_t threshold[] = { 175, 175, 150, 100, 0 };

// Default idle time
static byte idleMinutes = 5;
Expand Down Expand Up @@ -431,7 +431,7 @@ void serialDebug() {
Serial.print("Idle minutes: ");Serial.println(idleMinutes);

// Print current threshold values
Serial.print("Touch threshold: ");
Serial.print("Touch sensitivity: ");
for (uint8_t x=0; x<numkeys; x++) {
Serial.print(threshold[x]);
if (x<numkeys-1) Serial.print(", ");
Expand All @@ -457,7 +457,7 @@ void menu(){
Serial.println(F("4 to set the custom colors"));
Serial.println(F("5 to set the idle timeout"));
#ifdef TOUCH
Serial.println(F("6 to set the touch threshold"));
Serial.println(F("6 to set the touch sensitivity"));
#else
Serial.println(F("6 to set the debounce interval"));
#endif
Expand Down Expand Up @@ -501,7 +501,7 @@ void debounceExp(){
Serial.print(debounceInterval);
}
void thresholdExp(){
Serial.println(F("Enter a threshold value for each pad between 0 and 255."));
Serial.println(F("Enter a sensitivity value for each pad between 0 and 255 (higher is less sensitive.)"));
Serial.print(F("Current values: "));
for (uint8_t x=0; x<numkeys; x++) {
Serial.print(threshold[x]);
Expand Down Expand Up @@ -731,7 +731,7 @@ void thresholdMenu(){
printBlock(7);
while(true){
for(uint8_t x=0;x<numkeys;x++){
Serial.print(F("Threshold for key "));
Serial.print(F("Sensitivity for key "));
Serial.print(x+1);
Serial.print(": ");
uint8_t new_thresh = parseByte();
Expand Down

0 comments on commit e54aa85

Please sign in to comment.