change filtering settings, change threashold

main
xyqyear 2023-11-02 12:02:21 +08:00
parent 57ea602b5a
commit a5e0353a57
1 changed files with 15 additions and 15 deletions

View File

@ -7,18 +7,18 @@ public:
}; };
const uint8_t MPR_PADNUMS[] = {8, 9, 9, 8}; const uint8_t MPR_PADNUMS[] = {8, 9, 9, 8};
const uint8_t THREASHOLD = 35; const uint8_t THREASHOLD = 25;
touchblock touchmap[34] = { touchblock touchmap[34] = {
// Group A // Group A
{3, 4, 0}, // 1 {3, 4, -5}, // 1
{3, 0, 0}, // 2 {3, 0, -5}, // 2
{2, 4, 0}, // 3 {2, 4, -5}, // 3
{2, 0, 0}, // 4 {2, 0, -5}, // 4
{1, 5, 0}, // 5 {1, 5, -5}, // 5
{1, 0, 0}, // 6 {1, 0, -5}, // 6
{0, 4, 0}, // 7 {0, 4, -5}, // 7
{0, 0, 0}, // 8 {0, 0, -5}, // 8
// Group B // Group B
{3, 5, 0}, // 1 {3, 5, 0}, // 1
{3, 1, 0}, // 2 {3, 1, 0}, // 2
@ -77,14 +77,14 @@ const uint8_t RELEASE_THREASHOLD_OFFSET = 0;
// rising NCL being smaller than falling NCL is because of the same reason // rising NCL being smaller than falling NCL is because of the same reason
// the user can experiment with different values to find the best one // the user can experiment with different values to find the best one
// but those values should be good for most cases // but those values should be good for most cases
const uint8_t MHDR = 2; const uint8_t MHDR = 1;
const uint8_t NHDR = 2; const uint8_t NHDR = 1;
const uint8_t NCLR = 4; const uint8_t NCLR = 0;
const uint8_t FDLR = 0; const uint8_t FDLR = 0;
const uint8_t MHDF = 2; const uint8_t MHDF = 1;
const uint8_t NHDF = 1; const uint8_t NHDF = 1;
const uint8_t NCLF = 32; const uint8_t NCLF = 255;
const uint8_t FDLF = 4; const uint8_t FDLF = 2;
// range: 0 - 3 // range: 0 - 3
// 0: 6 samples // 0: 6 samples