Exploring the reMarkable pen input
This blog post describes input handling from the reMarkable 2 on a remote PC using Python and SSH.
Everything you do with your reMarkable tablet outside of its intended use is at your own risk, neither reMarkable nor I can be held liable if you brick your device.
Happy hacking :)
About reMarkable “Replace your notebooks and printed documents with the only tablet that feels like paper. reMarkable bridges the gap between pen and paper, and your digital devices.