View Single Post
Old 06-28-2021, 01:35 PM   #543
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,956
Karma: 70880793
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by javl View Post
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).
Can you see post 541? I think I was seeing wonky behavior yesterday.
John F is offline   Reply With Quote