Could anyone tell me the address's to read using IN (or should that
be ports) for groups of SAM keys?
I need more than one keypress, and would like to use the
following keys (or groups)..
O, and P -
Z
and M
and space should be needed.
64509 seems to be keys Q,W,E,R,T
and from FRED issue 11A,
Just to say that there`s a link to
http://www.catering-machines.com/
been added to the links section, under the banner robot coupe (which
got me excited)... I don`t know how to remove it, or even if
anyone just can.. but just noticed it.
-
Yahoo! Mail
Just realised the port address's are seperated by 256 bytes, so
should be able to find the ones I need. I hadn't known that :)
Calvin Allett [EMAIL PROTECTED] wrote: Could anyone tell me the address's to
read using IN (or should that
be ports) for groups of SAM keys?
I need more than one
The manual for Simon's excellent Turbomon has the keyboard port map
(http://simonowen.com/sam/turbomon/TurboMON.pdf)
Quickly looking at the PDF myself the ports you need are:
O - IN 57342 - (bit 1)
P - IN 57342 - (bit 0)
Z - IN 65278 - (bit 1)
M - IN 32766 - (bit 2)
SPACE - IN 32766 (bit 0)
Hi,
That's the right track, lots of things work in 256s (the high and low
bytes of a 16 bit number).
In the case of the keyboard, the lower byte is always 254 (I think
your number for QEWRT is suspect) and the upper byte is one of the
eight numbers which have 7 binary digits set and one
Thanks a lot lads, I`d got them by stepping up or down
by 256`s from the ones I already knew, although I notice
that when I didn`t have the exact right addresses then
other (groups of) keys can affect the value`s (of other groups)...
Just going with using the straight addresses of
what I need and
I see how the keys on the left/right hand side of
the keyboard have the bits reversed... I am (currrently), was
gonna just go with tested values (15,23,27,29,30 or reversed)
but cheers for the Basic example of how to use BAND, and
what it is I can`t believe I had forgot about/never used it...
I see (hadn`t thought) that I`m being stupid again, gonna
use BAND testing, as using value`s will still not work if
two keys in the same group are held down..
I wasn`t liking Z for charge instead of N, so used
N, and M, for charge and Jump, and neither worked if held down together,
as neither