View Single Post
Old 06-28-2021, 06:11 AM   #542
javl
Junior Member
javl began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2016
Device: Kobo Touch 2.0
Weird, I posted a reply yesterday but when I went back to edit it, it disappeared.

This version of the button uses a Raspberry Pi Pico connected to the serial port on the PCB of the Clara. The button closes the circuit between the Pico and serial port so it only uses power when you press the button. On boot the Pico sends a serial signal, and a script on the Kobo triggers a fake tap on the screen when this signal is detected. It is this last script that gets paused.

My second option to get this button to work would tap into the Kobo detecting a USB cable. I can take a small USB power bank and add a switch to it, then use the power-detect script on the Kobo (which seems to work even when in this idle mode) to trigger the fake tap. I kept this as a backup option as 1) I'm not sure repeatedly powering the Kobo for just a second won't cause any harm to the device and 2) I read the usb port is pretty fragile (though I guess this could be overcome by soldering to the board itself).

Regarding the :500, I didn't realize it was a nameless argument. I see now it is mentioned in the docs as timeout (I was searching for '500' before, sorry).
javl is offline   Reply With Quote