Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Remoclone Ver06

Re: Remoclone Ver06

From: Alan Korr <alankorr_at_subdimension.com>
Date: Tue, 18 Dec 2001 11:26:49 +0100

I do some changes yet to handle RB3 and RB5 better without any goto :
  BTFSS KEYPAD,<key1> ; <key1> = RB2/RB4 and <key2> = RB5/RB3
  BTFSS KEYPAD,<key2> ; databyte[<code>] = 0 if <key2> not pressed or
both <key1> and <key2> pressed;
  BCF DATABYTE,3

For other RBs :
  BTFSC KEYPAD,<key> ; databyte[<code>] = 0 if <key> not pressed;
  BCF DATABYTE,<code>

And of course, DATABYTE must be initially in binary : 11111110 <- the last
bit being for START BIT :)

Some minor modifications too : RETFIE instead of SLEEP in WAKEUP. SLEEP is
now in START in a infinite loop. Hope this program is okay.

----- Original Message -----
From: Tjerk Schuringa <regenpak_at_yahoo.com>
To: <jukebox_at_cool.haxx.se>
Sent: Tuesday, December 18, 2001 7:46 AM
Subject: Re: Remoclone Ver06


> Much better! I did find two flaws which have to be taken care of: the
order of
> keypad tests matters (check PortB:2 & 3 first) and a test must be made for
the
> correct bitpattern. It may not happen, but if a key bounces (or something)
the
> remoclone should put out only ones. Oh, and DATABYTE may have the wrong
initial
> value. That's easily checked.
>
> The putchar routine looks much cleaner too, but I'll verify it in my
piccie.
> Prolly will need some finetuning :-)
>
> T.J.


Received on 2001-12-18

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy