Posts: 6,743
Joined: Oct 2008
Reputation:
317
noggin
Posting Freak
Posts: 6,743
2015-06-29, 01:34
(This post was last modified: 2015-06-29, 01:35 by noggin.)
Update. Code now reasonably de-bounced and working.
The alternating codes for repeated key presses in RC6 make this nice and neat. If the code changes to the alternate for the previously pressed key you know it is a new key press, if not then check and see how long since the previous key press and reject those too close together.
Next step is to try it with the HP 260 G1 and OpenElec - and work out a decent key mapping in the Arduino code for the more obscure buttons on my remotes, and/or those that don't currently have public keyboard shortcuts.
My C++ probably sucks - but I appear to be learning a bit as I go...
Posts: 1,209
Joined: Apr 2013
Reputation:
20
great feature! would be def interested in something like that
Posts: 6,743
Joined: Oct 2008
Reputation:
317
noggin
Posting Freak
Posts: 6,743
Well that's a bit boring. Tested it with my HP 260 G1.
My Arduino Micro-based circuit drives OE fine after boot up, but when the HP shuts down something odd happens. The keyboard-USB port connected Arduino continues to be powered, but the TX and RX lights on the Arduino permanently light up as if it is being sent data. I'm guessing it is being put in a funny mode during Linux shutdown (it mounts as a serial port as well) so I'm guessing that confuses things.
Will have a think and continue work on this over the weekend.
Posts: 1,209
Joined: Apr 2013
Reputation:
20
how about shutting down the HP without the arduino attached and then after shutdown attach the arduino and see if you can boot it back on from cold boot, if this works then its worth trying to solve the other issue
Posts: 1,209
Joined: Apr 2013
Reputation:
20
2015-06-30, 20:21
(This post was last modified: 2015-06-30, 20:21 by MediaPi.)
did the HP turn on ? and where you able to navigate the boot screen?