Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: Tailung on Feb 26, 2019, 07:46 am

Title: Get screen resolution of connected pc
Post by: Tailung on Feb 26, 2019, 07:46 am
I'm working on a project were it would be very helpful that I know the display resolution of the screen were the arduino is connected to.
The arduino stays connected to the pc trough usb. The PC (win10) has a monitor. The arduino needs to know the resolution of that screen / monitor.
Is there a way to accomplish this?
Title: Re: Get screen resolution of connected pc
Post by: Robin2 on Feb 26, 2019, 08:56 am
You need a program running on the PC that sends a suitable message to the Arduino.

An Arduino has no access to the innards of your PC.

...R
Title: Re: Get screen resolution of connected pc
Post by: PaulS on Feb 26, 2019, 11:54 am
Quote
it would be very helpful that I know the display resolution of the screen were the arduino is connected to.
The Arduino sends serial data to/receives serial data from a COM port on a PC. It is NOT connected to a screen.

I can not imagine how the serial data it sends would depend on the screen resolution. Some clarification is clearly in order.