external mouse isse

Forum for discussion about the Langstone Microwave Transceiver that shares some features with the Portsdown. Wiki: https://wiki.microwavers.org.uk/Langstone_Project
Post Reply
ZL3TCM
Posts: 29
Joined: Thu Mar 16, 2017 5:28 am

external mouse isse

Post by ZL3TCM » Sun Oct 05, 2025 12:30 am

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>'?

g4eml
Posts: 766
Joined: Thu Apr 26, 2018 9:36 am

Re: external mouse isse

Post by g4eml » Sun Oct 05, 2025 1:32 pm

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

Post Reply

Return to “The Langstone Microwave Transceiver”