You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reads a register from the touch controller. See https://github.com/espruino/Espruino/issues/2146#issuecomment-2554296721 for a list
4934
-
of registers.
4934
+
of registers. When the touchscreen is off (eg the Bangle is locked) then reading from any register will return `255` (`0xFF`) -
4935
+
so ensure the Bangle is unlocked with `Bangle.setLocked(false)` before trying to read or write.
4935
4936
4936
-
For example `print(Bangle.touchRd(0xa7).toString(16))` returns the `ChipID` register, which is 0xB4 (CST816S) on older Bangles or 0xB6 (CST816D) on newer ones.
4937
+
For example `print(Bangle.touchRd(0xa7).toString(16))` returns the `ChipID` register, which is `0xB4` (CST816S) on older Bangles or `0xB6` (CST816D) on newer ones.
4937
4938
4938
4939
**Note:** On Espruino 2v06 and before this function only returns a number (`cnt` is ignored).
0 commit comments