dummie joystick guide problem


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Re: dummie joystick guide problem

    ok, this is what i got so far, all i really did was to turn TRISA into inputs and slightly modyfied the code to what i think would work with the 4 buttons but without the axis. and i get this errors.

    MY code;

    DEFINE OSC 48
    DEFINE LOADER_USED 1
    include "DESCUSBTRYTRYJOY.asm"

    TRISA = 0


    USBBufferSizeMax con 1 ' maximum buffer size
    USBBufferSizeTX con 1 ' input

    ' the USB buffer...
    USBBuffer Var Byte[USBBufferSizeMax]
    USBBufferCount Var Byte

    ' ************************************************** **********
    ' * main program loop - remember, you must keep the USB *
    ' * connection alive with a call to USBService every couple *
    ' * of milliseconds or so... *
    ' ************************************************** **********
    usbinit ' initialise USB...
    ProgramStart:
    USBBuffer.0(0) = porta.0
    USBBuffer.0(1) = porta.1
    USBBuffer.0(2) = porta.2
    USBBuffer.0(3) = porta.3

    gosub DoUSBOut
    goto ProgramStart




    MY ERRORS;

    Name:  ERRORLOG.png
Views: 685
Size:  6.9 KB



    thanks for any advice

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: dummie joystick guide problem

    Darrel's usb routine:

    http://www.picbasic.co.uk/forum/show...0434#post80434

    Where did you get that include file? What are the contents?

    Robert
    Last edited by Demon; - 27th April 2014 at 19:22.

Similar Threads

  1. USB HID Joystick for Dummies
    By Squibcakes in forum USB
    Replies: 21
    Last Post: - 2nd May 2014, 08:52
  2. PC joystick to (Servo or Stepper) STEP/DIRECTION
    By boroko in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 31st October 2010, 21:14
  3. Joystick or Game Controller Output Signals...
    By rxforspeed in forum General
    Replies: 6
    Last Post: - 19th January 2009, 09:01
  4. dummies guide to serin/serout by a dummie
    By earltyso in forum Code Examples
    Replies: 11
    Last Post: - 10th October 2008, 03:12
  5. USB joystick project
    By ZeroFusion in forum USB
    Replies: 6
    Last Post: - 18th November 2006, 19:21

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