Hi Hans and others,
The best wishes for 2025.
@Hans. I do not have the book you mention (I have another book of Bert van Dam but that does not mention anything in these chapters).
What do you want to do? Do you want to control your mouse cursor with this joystick? I assume via an USB connection.
If so then you have to do the following:
-
Write a program that reads the joystick using the ADC
-
Include the JAL library usb_mouse.jal in your program
-
Convert the ADC values that you read into mouse movements (function usb_mouse_move). Have a look at one of the USB mouse sample programs.
You need of course a PIC with USB hardware on board.
Good luck!
Kind regards,
Rob