I can't seem to make this code work. I get this error message when I click "upload":Yeah I totally get that - really makes you realise how useful being able to program is, if you ever get the time I'd deffinately reccomend learning!
I can see that the Samco gun code I sent you is messy and incomplete, so I've made a version for you that'll hopefully do what your wanting and commented on it, its available here:
https://github.com/bobbydilley/ArduinoAnalogueMouse
You need to plug your guns into A0 and A1 and then a trigger into digital pin 5.
This will only work for an Arduino Due or Zero or one of those Teensy devices that support HID out.
Arduino: 1.8.10 (Windows 7), Board: "Arduino Leonardo"
Sketch uses 6212 bytes (21%) of program storage space. Maximum is 28672 bytes.
Global variables use 321 bytes (12%) of dynamic memory, leaving 2239 bytes for local variables. Maximum is 2560 bytes.
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "S"; type = p
Software Version = V.
Typical useless computer error message with no hint of what it means or what I'm meant to do about it. I'm starting to remember why I don't use Arduino for projects. Nothing ever works for me.
Anyone got any idea what that error means or what I did wrong?
Last edited: