If you use Serial.print(val, BIN); you’ll see the binary representation.
And your keypads have the numbers [0] and [1], printing [2] will show you the contents of the memory location following the reserved space (= not your btnState)
Arrays in C always start with index zero!
Now i am connect to ttp229 to digispark(attiny85) and digispark to arduino using i2c communication. So that i connect
More than one ttp229.any other options than plz guide me.