If you turn that into 16 then you'll have to change the scale for touch size. Change them by dividing them by 16 (i.e.: 2 to the power of 4).
This patch should work:
diff --git a/libraries/Trill/Trill.cpp b/libraries/Trill/Trill.cpp
index 9dbf608e..a6cac260 100644
--- a/libraries/Trill/Trill.cpp
+++ b/libraries/Trill/Trill.cpp
@@ -77,11 +77,11 @@ struct trillRescaleFactors_t {
static const std::vector<struct trillRescaleFactors_t> trillRescaleFactors ={
{.pos = 1, .posH = 0, .size = 1}, // UNKNOWN = 0,
- {.pos = 3200, .posH = 0, .size = 4566}, // BAR = 1,
- {.pos = 1792, .posH = 1792, .size = 3780}, // SQUARE = 2,
+ {.pos = 3200, .posH = 0, .size = 1142.5}, // BAR = 1,
+ {.pos = 1792, .posH = 1792, .size = 945}, // SQUARE = 2,
{.pos = 4096, .posH = 0, .size = 1}, // CRAFT = 3,
- {.pos = 3584, .posH = 0, .size = 5000}, // RING = 4,
- {.pos = 1920, .posH = 1664, .size = 4000}, // HEX = 5,
+ {.pos = 3584, .posH = 0, .size = 1250}, // RING = 4,
+ {.pos = 1920, .posH = 1664, .size = 1000}, // HEX = 5,
};
Trill::Trill(){}
@@ -265,7 +265,7 @@ int Trill::identify() {
void Trill::updateRescale()
{
- float scale = 1 << (12 - numBits);
+ float scale = 1 << (16 - numBits);
posRescale = 1.f / trillRescaleFactors[device_type_].pos;
posHRescale = 1.f / trillRescaleFactors[device_type_].posH;
sizeRescale = scale / trillRescaleFactors[device_type_].size;