Shop OBEX P1 Docs P2 Docs Learn Events
pressing the "f" key — Parallax Forums

pressing the "f" key

supportsupport Posts: 15
edited 2011-03-22 13:33 in Propeller 1
i'm trying to write a program that when an input is recieved the prop will output the "f" key through a usb cable connected to the computer. In essence i push a switch and the prop types f in a word processor screen help please..

Comments

  • RaymanRayman Posts: 14,877
    edited 2011-03-22 11:08
    There's got to be apps out that that redirect COM port data to keyboard buffer...
    Here's something that sounds right:
    http://www.techrepublic.com/software/redirect-serial-port-rs232-to-keyboard-30l-windows/781303

    then, just use fullduplexserial and output characters.
  • HShankoHShanko Posts: 402
    edited 2011-03-22 12:06
    support,

    More information needs be supplied.

    By "f" key do you mean the lower-case 'f' key? Or do you need the ASCII code for an 'f' key press? Or do you mean "f" for Function key?

    Lower case 'f' key code would be a hex 66 value.

    EDIT --- I must of not updated before noticiing Rayman commented before I finished my post.
  • supportsupport Posts: 15
    edited 2011-03-22 12:46
    actually any key would do. i just prefer the button "f" lowercase. I was thinking of getting an old keyboard and stripping it and just using one of the props io pins to make the contact for the letter i needed. but if the prop can just send out the proper command that would be better.
  • RaymanRayman Posts: 14,877
    edited 2011-03-22 12:55
    There is also a USB HID device that's been posted, it may be in OBEX, but I think that approach would be a little more difficult...
  • Mike GMike G Posts: 2,702
    edited 2011-03-22 12:56
    support, it's very easy to send the ASCII code for f (66) to a PC. See the Parallax Serial Terminal. If you want the letter "f" to populate on a word processor screen, that a bit more complicated and requires interface software running on a PC as described by Rayman. However, sending the characters from the Propeller remains the same.
  • LeonLeon Posts: 7,620
    edited 2011-03-22 13:19
    A keyboard "wedge" is another way to do it. We needed one for reading bar codes where I once worked, so I gave the design of one to a new graduate as a project. He used a small AVR, it was quite simple.
  • supportsupport Posts: 15
    edited 2011-03-22 13:24
    what is a keyboard "wedge"
Sign In or Register to comment.