Pic18f2550 HID Keyboard


Results 1 to 21 of 21

Threaded View

  1. #9
    Join Date
    Jan 2012
    Location
    Grid EN19MV
    Posts
    159

    Default Re: Pic18f2550 HID Keyboard

    Wouldn't it shorten things to do this:

    Code:
    if portb.7 = 1 then
        FOR i = 0 to 7
             IF i = 2 then
                 USBBuffer[i] = $33 ; 33=";"
             ELSE
                 USBBuffer[i] = 0
             ENDIF
        NEXT i
        gosub DoUSBOut
    ELSE
    ....clear buffer...
    ENDIF
    Last edited by andywpg; - 15th September 2014 at 23:29.
    "I have noticed that even those who assert that everything is predestined and that
    we can change nothing about it still look both ways before they cross the street"


    -Stephen Hawking

Similar Threads

  1. USB HID is slower than often using PIC18f2550
    By Ahmadabuomar in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th November 2010, 14:05
  2. HID Keyboard Example
    By apitaru in forum USB
    Replies: 8
    Last Post: - 6th August 2010, 16:27
  3. PIC18F2550 Newbie
    By JeffnDana in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th April 2007, 15:13
  4. Replies: 3
    Last Post: - 18th January 2006, 14:12
  5. USB, PIC18F2550 and VB
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th November 2005, 18:37

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts