stephanschulz
Well-known member
Hello
I have a few teensy 3.2 running in an exhibition and am using the touchRead to see if people are touching a pad.
The touch pad is connected to pin A8 and it's readings are send out over OSC.
Most of the time things work well but once in a while is seem to get a reading around 65526 and after that things get strange.
I have a feeling it's either that touchRead outputs something larger than a regular integer, or it outputs a negative value that I did not account for in my code.
What is the max range of touchRead() ?
Should I use a long variable? Should I look out for -1?
thanks,
stephan
I have a few teensy 3.2 running in an exhibition and am using the touchRead to see if people are touching a pad.
The touch pad is connected to pin A8 and it's readings are send out over OSC.
Most of the time things work well but once in a while is seem to get a reading around 65526 and after that things get strange.
I have a feeling it's either that touchRead outputs something larger than a regular integer, or it outputs a negative value that I did not account for in my code.
What is the max range of touchRead() ?
Should I use a long variable? Should I look out for -1?
thanks,
stephan