user10165: I am using arduino leonardo for moving mouse pointer with head tracking using MPU6050. It works fine in general. But as soon as I connect an external lcd screen to my laptop via hdmi cable, it stops transmitting. (that is the TX led goes off altogether and the mouse stops moving) I am not able to figure out what the issue is here Will using a teensy 3.0 instead of leonardo solve this problem?

user76461: The issue is that the mouse coordinates are being set by the display device that it's attached to.
The computer sends a descriptor about the display to the HID device ( the mouse ) the mouse then uses the information about the logical size of the screen to co-ordinate the movements.
For example, to move with Mouse.move(100,100,0); you are not actually moving by 100 pixels, but by 100/(127-((-127)).
The only option is can suggest is to STOP the mouse and Restart it again - this will be easier to restart calculations again.
Heres my Logic Function to convert Percentage to appropriate values for Mouse.move();
int percentToLogic(int percent) { return percent*254/100; }

10165: <p>I am using arduino leonardo for moving mouse pointer with head tracking using MPU6050. It works fine in general. But as soon as I connect an external lcd screen to my laptop via hdmi cable, it stops transmitting. (that is the TX led goes off altogether and the mouse stops moving) I am not able to figure out what the issue is here Will using a teensy 3.0 instead of leonardo solve this problem?</p>
 76461: <p>The issue is that the mouse coordinates are being set by the display device that it's attached to.</p>
<p>The computer sends a descriptor about the display to the HID device ( the mouse ) the mouse then uses the information about the logical size of the screen to co-ordinate the movements.</p>
<p>For example, to move with <code>Mouse.move(100,100,0);</code> you are not actually moving by 100 pixels, but by 100/(127-((-127)).</p>
<p>The only option is can suggest is to STOP the mouse and Restart it again - this will be easier to restart calculations again.</p>
<p>Heres my Logic Function to convert Percentage to appropriate values for Mouse.move();<br />
<code>int percentToLogic(int percent) { return percent*254/100; }</code></p>
