Hi Guys Rob ZL3TCM here
Im having an issue getting the external mouse compiled on a mini pro I keep getting this error , any ideas? Im no arduino expert so a bit lost at the moment
regards Rob
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino: In function 'void setup()':
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:66:2: error: 'Mouse' was not declared in this scope
Mouse.begin();
^~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino: In function 'void loop()':
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:79:3: error: 'Mouse' was not declared in this scope
Mouse.move(0,0,counts);
^~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:91:8: error: 'Mouse' was not declared in this scope
Mouse.click(MOUSE_LEFT);
^~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:91:20: error: 'MOUSE_LEFT' was not declared in this scope
Mouse.click(MOUSE_LEFT);
^~~~~~~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:91:20: note: suggested alternative: 'MOUSE_h'
Mouse.click(MOUSE_LEFT);
^~~~~~~~~~
MOUSE_h
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:105:8: error: 'Mouse' was not declared in this scope
Mouse.click(MOUSE_RIGHT);
^~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:105:20: error: 'MOUSE_RIGHT' was not declared in this scope
Mouse.click(MOUSE_RIGHT);
^~~~~~~~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:105:20: note: suggested alternative: 'MOUSE_h'
Mouse.click(MOUSE_RIGHT);
^~~~~~~~~~~
MOUSE_h
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:119:8: error: 'Mouse' was not declared in this scope
Mouse.click(MOUSE_MIDDLE);
^~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:119:20: error: 'MOUSE_MIDDLE' was not declared in this scope
Mouse.click(MOUSE_MIDDLE);
^~~~~~~~~~~~
F:\langstone\Langstone-Mouse-main\Langstone-Mouse\Langstone-Mouse.ino:119:20: note: suggested alternative: 'MOUSE_h'
Mouse.click(MOUSE_MIDDLE);
^~~~~~~~~~~~
MOUSE_h
exit status 1
Compilation error: 'Mouse' not found. Does your sketch include the line '#include <Mouse.h>'?
external mouse isse
Re: external mouse isse
As stated on GitHub the mouse emulation will only work on a ATMega32u4 processor as used in the Arduino Pro Micro. The Mini Pro is a completely different device using the ATMega328P. The Mouse.h library wont be available for that device.
Nowadays I recommend using the RP2040 Zero module which is cheaper and easier to program.
Colin G4EML
Nowadays I recommend using the RP2040 Zero module which is cheaper and easier to program.
Colin G4EML
Re: external mouse isse
Thanks Colin you put me on the correct track , why a pro micro? well its what I had around here already. BTW Pi stuff over here is not cheap. Anyhow I found I had selected the wrong board in the IDE all sorted and working now
Cheers Rob ZL3TCM
Main issue now is reliable start up as more often than not the pi starts but the Pluto seems to go into a start restart mode, some times even looks like its working with a waterfall display but not actually receiving anything. Using a Pi 27W power supply to run everything on, does not get warm so Im guessing its ok, I see comments about USB cables causing issues has anyone found a reliable source of good quality USB cables?
Cheers Rob ZL3TCM
Main issue now is reliable start up as more often than not the pi starts but the Pluto seems to go into a start restart mode, some times even looks like its working with a waterfall display but not actually receiving anything. Using a Pi 27W power supply to run everything on, does not get warm so Im guessing its ok, I see comments about USB cables causing issues has anyone found a reliable source of good quality USB cables?