View Single Post
Old 01-02-2012, 12:43 AM   #41
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
One thing that CAN be detected by the kindle is whether it is CHARGING from the USB port. Supply +5v to the power wires in a USB cable to switch the kindle charging state, and that can be detected at /proc/ ports even by a simple script that monitors the charging state and measures how long it is in "charging" mode. A short charge pulse (perhaps one second) could be used to send a "next page" key code to the kindle keyboard /dev/ port, and a long charge pulse (perhaps two seconds) could send a "previous page" key code to the keyboard /dev/ port.

Perhaps +4.8v would be enough to send to the kindle USB power wires (Four 1.2v NiMH rechargable AAA batteries, for example). Do not supply more than 5v to the USB power wires, and do not connect them backwards.

You only need one foot switch, and you can control page turn direction by how long you hold down the foot switch.

Last edited by geekmaster; 01-02-2012 at 06:58 AM.
geekmaster is offline   Reply With Quote