On Thu, Aug 04, 2005 at 02:21:24PM +0200, Frode Tenneboe wrote: > On Thu, 4 Aug 2005 11:51:17 +0100 Stuart Brady <[EMAIL PROTECTED]> wrote: > > I tried setting BREAKDI... didn't seem to help, unfortunately. > > Hmmm...do you have an old ROM? how about poke svar 321,1 then? > Haven't tested with the serial driver though...
Still doesn't work. :( > > I don't think there would be a way to determine when a key is released, > > or to allow keys to be pressed together. > > Not sure what bearing this has one your function. As I understand it > you want to use the SAM teletype-ish; one key at a time, serial. I want it to be keyboard-ish, equivalent to sending press/release events. When a scan line changes, it prints the entire scan line to the stream. The other end receives lines like: 1,254 1,255 2,253 2,255 5,127 5,255 The left-most number is the scan line number. The right-most number is the current scan -- each bit corresponding to the key. 0 indicates that the key is pressed (and 1 means it's released). So 255 means that no keys are pressed on that scan line. This is the same as the BASIC program that I'd written earlier. Cheers, -- Stuart Brady

