willycat
Newbie level 6
Hi,
I am working on a little project composed of a VNC1L chip connected to a 18f4550 Microchip pic via the spi interface.
The goal is to handle an USB joystick.
The communication with the two chips works fine: The joystick is recognized, the report descriptor is read for decoding data coming from the joystick.
After the initialization stage and to test, the pic enters an infinite loop in which the DRD command is send twice to the VNC1l (because the size of the report is 11 bytes).
once the data are received, the first button is searched and his state determine the state of a led (button pushed=led on, button released=led off).
And here comes the problem: it takes 2 seconds to the led to go on after the button is pushed !
I don't understand why.
Can someone help me ?
Thanks,
I am working on a little project composed of a VNC1L chip connected to a 18f4550 Microchip pic via the spi interface.
The goal is to handle an USB joystick.
The communication with the two chips works fine: The joystick is recognized, the report descriptor is read for decoding data coming from the joystick.
After the initialization stage and to test, the pic enters an infinite loop in which the DRD command is send twice to the VNC1l (because the size of the report is 11 bytes).
once the data are received, the first button is searched and his state determine the state of a led (button pushed=led on, button released=led off).
And here comes the problem: it takes 2 seconds to the led to go on after the button is pushed !
I don't understand why.
Can someone help me ?
Thanks,