this section will cause you a problem
Code:
gosub DoUSBIn
toggle led
pause 100
gosub DoUSBOut
toggle led
pause 100
goto ProgramStart
Why? because of this section
Code:
' ************************************************** **********
' * main program loop - remember, you must keep the USB *
' * connection alive with a call to USBService every couple *
' * of milliseconds or so... *
' ************************************************** **********
The easy way will be to use Darrel's instant interrupts. Here's the famous POST 148
http://www.picbasic.co.uk/forum/show...&postcount=148
Last edited by mister_e; - 14th April 2008 at 22:14.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks