0

I want to use the gpio pins on the pi too use it as a mouse for a PC. Can it be done? If yes then how? I want to use python.

Adarsh
  • 23
  • 2
  • Related: https://raspberrypi.stackexchange.com/q/271/19949 and https://raspberrypi.stackexchange.com/q/32197/19949 – Ghanima May 01 '18 at 18:32

1 Answers1

0

Why not using a Pi Zero (W), which can operate in the so-called USB gadget mode? The Pi Zero (W) then appears as a normal USB mouse/keyboard to the PC. Please note that this isn't possible with a Pi A/B, but only with the Zero Pis. Using USB gadget mode avoids having to emulate serial mouse, unless you have a really old PC system which hasn't USB support.

TheDiveO
  • 1,591
  • 1
  • 11
  • 16