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;
thanks for any advice
Bookmarks