vic user
January 7th, 2004, 07:56 AM
I am about to receive a light pen for the Commodore line of 8 bit machines, and I was reading up on how the light pen determines what part of the screen you are touching.
Here is a quote from the following page:
http://www.atariarchives.org/ecp/chapter_6.php
To understand how a light pen works, you must know a bit about how your computer's monitor displays a picture. Pictures on the screen are made up of tiny dots of light. These dots are produced from an electron gun in the monitor which shoots electrons at the screen. These electrons excite the phosphor coating on the screen, causing it to emit light. In this way, the electron gun actually "paints" the picture, dot by dot, row by row, until the screen is filled. All of this is done in a fraction of a second and is updated many times every second.
Your computer keeps track of where the beam of electrons from the electron gun is at all times. The light pen, when pointed to a spot on the screen, triggers the computer to store the location of the beam as it passes. These x and y coordinates are placed in special registers of your computer. Since the position of the beam stored is the same as that of the light pen, programs can determine where you're pointing the light pen by checking the values contained in these registers. The program can then use this information to perform various functions, like drawing a line or selecting an option.
Now if this is the case, I am assuming that you can use a light pen on a monitor or TV that is actually not connected at all to a computer, yet still send X and Y co-ordinates to the computer.
Reason I want to know if this is true or not, is because I would like to have a small TV or something near the light pen, yet have another monitor or TV as my actual screen for viewing. That way I can have the viewing screen far away from the computer, and don't have to lean over every 5 seconds to use the light pen.
Does this make sense?
Chris
Here is a quote from the following page:
http://www.atariarchives.org/ecp/chapter_6.php
To understand how a light pen works, you must know a bit about how your computer's monitor displays a picture. Pictures on the screen are made up of tiny dots of light. These dots are produced from an electron gun in the monitor which shoots electrons at the screen. These electrons excite the phosphor coating on the screen, causing it to emit light. In this way, the electron gun actually "paints" the picture, dot by dot, row by row, until the screen is filled. All of this is done in a fraction of a second and is updated many times every second.
Your computer keeps track of where the beam of electrons from the electron gun is at all times. The light pen, when pointed to a spot on the screen, triggers the computer to store the location of the beam as it passes. These x and y coordinates are placed in special registers of your computer. Since the position of the beam stored is the same as that of the light pen, programs can determine where you're pointing the light pen by checking the values contained in these registers. The program can then use this information to perform various functions, like drawing a line or selecting an option.
Now if this is the case, I am assuming that you can use a light pen on a monitor or TV that is actually not connected at all to a computer, yet still send X and Y co-ordinates to the computer.
Reason I want to know if this is true or not, is because I would like to have a small TV or something near the light pen, yet have another monitor or TV as my actual screen for viewing. That way I can have the viewing screen far away from the computer, and don't have to lean over every 5 seconds to use the light pen.
Does this make sense?
Chris