Due to injuring both my hands recently I've been unable to use a computer mouse. As a result, I've been trying to make my own mouth-controlled computer mouse (well, instruct others how to make it for me haha), similar to the one in this instructable
I've never programmed an Arduino before and thought it would be as simple as copying the code provided in the tutorial (link) across onto the device and it would all work. It hasn't, though. I'm hoping someone might be able to help me figure out how to fix the errors I've been getting? I've tried changing a few small things but really have no idea what I'm doing.
I'm using Arduino Pro micro, if that's useful.
Note - there were links to the Arduino site in the error code and this meant this forum wouldn't allow me to post the errors as I can't use more than 2 links. I have separated the https to "h ttps" to solve this problem.
Error codes:
Arduino: 1.8.15 (Windows Store 1.8.49.0) (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"
In file included from C:\Users*****\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino:28:0:
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.49.0_x86__mdqgnx93n4wtt\libraries\Mouse\src/Mouse.h:29:2: warning: #warning "Using legacy HID core (non pluggable)" [-Wcpp]
#warning "Using legacy HID core (non pluggable)"
^~~~~~~
C:\Users*****\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino: In function 'void setup()':
SupSipNPuff_Final:53:3: error: 'Mouse' not found. Does your sketch include the line '#include '?
Mouse.begin(); [//Take](h ttps://take/) control of the mouse
^~~~~
C:\Users*****\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino: In function 'void loop()':
SupSipNPuff_Final:80:5: error: 'Mouse' not found. Does your sketch include the line '#include '?
Mouse.move(reading[0], -reading[1], 0);
^~~~~
C:\Users*****\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino: In function 'void inputMouse(int)':
SupSipNPuff_Final:112:9: error: 'Mouse' not found. Does your sketch include the line '#include '?
[Mouse.press](h ttp://mouse.press/)(MOUSE_RIGHT);
^~~~~
SupSipNPuff_Final:112:21: error: 'MOUSE_RIGHT' was not declared in this scope
[Mouse.press](h ttp://mouse.press/)(MOUSE_RIGHT);
^~~~~~~~~~~
C:\Users******\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino:112:21: note: suggested alternative: 'MOUSE_h'
[Mouse.press](h ttp://mouse.press/)(MOUSE_RIGHT);
^~~~~~~~~~~
MOUSE_h
SupSipNPuff_Final:116:7: error: 'Mouse' not found. Does your sketch include the line '#include '?
Mouse.move(0, 0, -1);
^~~~~
SupSipNPuff_Final:119:9: error: 'Mouse' not found. Does your sketch include the line '#include '?
Mouse.release(MOUSE_LEFT);
^~~~~
SupSipNPuff_Final:119:23: error: 'MOUSE_LEFT' was not declared in this scope
Mouse.release(MOUSE_LEFT);
^~~~~~~~~~
C:\Users*****\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino:119:23: note: suggested alternative: 'MOUSE_h'
Mouse.release(MOUSE_LEFT);
^~~~~~~~~~
MOUSE_h
SupSipNPuff_Final:123:9: error: 'Mouse' not found. Does your sketch include the line '#include '?
Mouse.release(MOUSE_RIGHT);
^~~~~
SupSipNPuff_Final:123:23: error: 'MOUSE_RIGHT' was not declared in this scope
Mouse.release(MOUSE_RIGHT);
^~~~~~~~~~~
C:\Users*****\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino:123:23: note: suggested alternative: 'MOUSE_h'
Mouse.release(MOUSE_RIGHT);
^~~~~~~~~~~
MOUSE_h
SupSipNPuff_Final:127:7: error: 'Mouse' not found. Does your sketch include the line '#include '?
Mouse.move(0, 0, 1);
^~~~~
SupSipNPuff_Final:130:9: error: 'Mouse' not found. Does your sketch include the line '#include '?
[Mouse.press](h ttp://mouse.press/)(MOUSE_LEFT);
^~~~~
SupSipNPuff_Final:130:21: error: 'MOUSE_LEFT' was not declared in this scope
[Mouse.press](h ttp://mouse.press/)(MOUSE_LEFT);
^~~~~~~~~~
C:\Users*****\Documents\Health\Mouse\SipNPuff_Mouse-master\SipNPuff_Mouse-master\Arduino Program\SupSipNPuff_Final\SupSipNPuff_Final.ino:130:21: note: suggested alternative: 'MOUSE_h'
[Mouse.press](h ttp://mouse.press/)(MOUSE_LEFT);
^~~~~~~~~~
MOUSE_h
exit status 1
'Mouse' not found. Does your sketch include the line '#include '?
Any help is greatly appreciated!