Difference between revisions of "Dk'tronics Lightpen"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
Line 1: Line 1:
 
[[Image:dktronics light pen.jpg|right|thumb|250px|The dktronics lightpen - speccy version]]
 
[[Image:dktronics light pen.jpg|right|thumb|250px|The dktronics lightpen - speccy version]]
 
[[Image:dktronics lightpen amstrad.jpg‎|right|thumb|250px|The Dk'tronics Lightpen for the CPC464]]
 
[[Image:dktronics lightpen amstrad.jpg‎|right|thumb|250px|The Dk'tronics Lightpen for the CPC464]]
 +
 +
== Description ==
  
 
A Lightpen by [[dk'tronics]].
 
A Lightpen by [[dk'tronics]].
  
The lightpen was distributed with an artpackage.  
+
The lightpen was distributed with an art package.  
  
 
The dk'Tronics lightpen came in two versions.
 
The dk'Tronics lightpen came in two versions.
  
A version where the artpackage was put on an ROM located on the interface.
+
A version where the art package was put on an ROM located on the interface.
 +
 
 +
A version where the art package had to be loaded from disc.
 +
 
 +
The lightpen came in two different casings. One for the CPC464 and one for the CPC6128. The contents however were the same.
 +
 
 +
== Software ==
 +
 
 +
The ROM version of the art package was started with the bar command |Lightpen. The art package used an on-screen menu system consisting of 5 menus and 3 sub menus which could be navigated using the lightpen. Each menu offered 3 - 5 large icons to choose the commands. The selected command displayed a square bracket around the icon.
 +
 
 +
Menus
 +
* Menu 1 - Saving and loading files from disc or tape
 +
* Menu 2 - Clear screen / Calibrate Pen / Next Menu
 +
* Menu 3 - Draw / Fill / Set Colour / Set Pencil / Next Menu
 +
* Menu 4 - Rubber Band / Outline / Set Colour / Set Pencil / Next Menu
 +
* Menu 5 - Circle / Rectangle / Copy (Sub menu) / Text (Sub menu) / Scratch Pad (Sub menu)
 +
 
 +
Sub Menus
 +
* Copy Menu - Copy & Expand / Shrink
 +
* Text Menu - Vertical Text / Horizontal Text / Set Colour
 +
* Scratch Pad - Screen to Pad / Edit / Pad to Screen
 +
 
 +
 
 +
Rubber Band was a method of drawing curves and irregular shapes by defining points on the screen to be joined by a line.
 +
The scratch pad was a simple copy/paste area which could be edited seperately.
 +
 
 +
The handbook also gave instructions in both BASIC and assembly to use the lightpen within your own programs. A small routine to return the X and Y coordinates which worked in all screen modes:
 +
 
 +
 
 +
10 out &1C00, 17 : L=inp(&1F00) : out &1C00, 16 : H=inp(&1F00)
 +
 
 +
20 L=H*256+L-12292 : Y=L/40 : X=L-Y*40
  
A version where the artpackage had to be loaded from disc.
+
== Technical ==
  
The lightpen came in two different casings. One for the CPC464 and one for the CPC6128. The contents however was the same.
+
Uses I/O ports: [[I/O_Port_Summary|#1C00]] and [[I/O_Port_Summary|#1F00]]
  
 
== dk'Tronics lightpen artpackage screenshots ==
 
== dk'Tronics lightpen artpackage screenshots ==

Revision as of 09:51, 23 October 2009

The dktronics lightpen - speccy version
The Dk'tronics Lightpen for the CPC464

Description

A Lightpen by dk'tronics.

The lightpen was distributed with an art package.

The dk'Tronics lightpen came in two versions.

A version where the art package was put on an ROM located on the interface.

A version where the art package had to be loaded from disc.

The lightpen came in two different casings. One for the CPC464 and one for the CPC6128. The contents however were the same.

Software

The ROM version of the art package was started with the bar command |Lightpen. The art package used an on-screen menu system consisting of 5 menus and 3 sub menus which could be navigated using the lightpen. Each menu offered 3 - 5 large icons to choose the commands. The selected command displayed a square bracket around the icon.

Menus

  • Menu 1 - Saving and loading files from disc or tape
  • Menu 2 - Clear screen / Calibrate Pen / Next Menu
  • Menu 3 - Draw / Fill / Set Colour / Set Pencil / Next Menu
  • Menu 4 - Rubber Band / Outline / Set Colour / Set Pencil / Next Menu
  • Menu 5 - Circle / Rectangle / Copy (Sub menu) / Text (Sub menu) / Scratch Pad (Sub menu)

Sub Menus

  • Copy Menu - Copy & Expand / Shrink
  • Text Menu - Vertical Text / Horizontal Text / Set Colour
  • Scratch Pad - Screen to Pad / Edit / Pad to Screen


Rubber Band was a method of drawing curves and irregular shapes by defining points on the screen to be joined by a line. The scratch pad was a simple copy/paste area which could be edited seperately.

The handbook also gave instructions in both BASIC and assembly to use the lightpen within your own programs. A small routine to return the X and Y coordinates which worked in all screen modes:


10 out &1C00, 17 : L=inp(&1F00) : out &1C00, 16 : H=inp(&1F00)

20 L=H*256+L-12292 : Y=L/40 : X=L-Y*40

Technical

Uses I/O ports: #1C00 and #1F00

dk'Tronics lightpen artpackage screenshots

Manual