you are using the trill-twod branch, I added this functionality there (untested).
You can now add multiplexed channels to the parametersFromAnalog
vector, e.g.:
static std::vector<unsigned int> parametersFromAnalog = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};
It's unclear to me what the order is. For instance when setting the multiplexer channels to 2, it's unclear to me whether the index -> channel association is;
0.0 -> 0
0.1 -> 1
1.0 -> 2
1.1 -> 3
2.0 -> 4
2.1 -> 5
3.0 -> 6
3.1 -> 7
...
or
0.0 -> 0
1.0 -> 1
2.0 -> 2
3.0 -> 3
...
0.1 -> 8
1.1 -> 9
2.1 -> 10
3.1 -> 11
but a quick test should tell you that. Give it a try and let me know.