Changes

Dk'tronics Lightpen

1,535 bytes added, 13:19, 27 December 2010
/* Manual */
* 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 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 
The value 12292 needed to be slightly adjusted to match the monitor being used. This could also be achieved in software by incorporating a simple manual calibration routine.
== Technical ==
Uses I/O ports: [[I/O_Port_Summary|#1C00]] and [[I/O_Port_Summary|#1F00]](as shown in above BASIC example) (and as on page 1-26 and 1-27 of the original manual) * #1C00 and #1F00 are bad decodings /mirrors of port [[CRTC]] ports #BC00 and #BF00 the ports used by the CRTC.* These ports will clash with other hardware.(but do work more or less)* A15=0 doesnt't trigger the [[Gate Array]] (which would also require A14=1)* A13=0 does trigger [[Upper ROM Bank Number]] (but the IN's don't cause problems since the ROM bank is write-only, the OUT's do activate bank 16 and 17, but usually don't cause problems since these banks usually contain mirrors of the BASIC ROM)
The Lightpen uses the CRTC /LPEN input on the expansion port.
</gallery>
<gallery caption="dk'tronics CPC6128 Lightpen interface">Image:Lightpen_Front.jpg|FrontImage:Lightpen_Back.jpg|BackImage:Lightpen_Top.jpg|TopImage:Lightpen_Side.jpg|SideImage:Lightpen_Pen.jpg|PenImage:Lightpen_PCB_Top.jpg|PCB TopImage:Lightpen_PCB_Bottom.jpg|PCB Bottom</gallery> = = Manuals == * [[Media:DKTronics_Lightpen_Manual.pdf|DK'Tronics Lightpen Manual ]] (pdf) {{EN}}* [[Media:DK'Tronics Peripheral - Technical Manual (Edition 1).pdf|DK'Tronics Peripheral - (Edition 1) Technical Manual]] (pdf) {{EN}}* [[Media:DK'Tronics Graphics Lightpen (ROM Version) Manual.pdf|DK'Tronics Graphics Lightpen (ROM Version) Manual]] (pdf) {{EN}} == Downloads ==
* [[Media:Dk'Tronics Graphics Lightpen (tape).zip|Dk'Tronics Graphics Lightpen (tape).zip]] (CDT for Emulators)
* [[Media:Dk'Tronics Lightpen Printer Routines (tape).zip|Dk'Tronics Lightpen Printer Routines (tape).zip]] (CDT for Emulators)
* [[File:DktronicsLightpenDisk.zip]] - for ROM-less version (original cassette driver on disc)
* [[Media:Dk'tronicsLightPenRomImage.zip|Dk'tronics Lightpen (rom).zip]] (ROM for Emulators)
[[Category:HardwareInput Device]] [[Category:Peripherals]] [[Category:Manual]]
20,492
edits