Device::ParallelPort::Printer - Emulate a normal old style printer using Device::ParallelPort


Device-ParallelPort documentation  | view source Contained in the Device-ParallelPort distribution.

Index


NAME

Top

Device::ParallelPort::Printer - Emulate a normal old style printer using Device::ParallelPort

SYNOPSIS

Top

	use Device::ParallelPort::Printer;
	my $printer = Device::ParallelPort::Printer->new('parport:0');
	$printer->sendfile('demo.ps');

DESCRIPTION

Top

This is a demonstration only and does not have any real practical application. It has been written as a demonstration on how to write drivers for Device::ParallelPort.

Device::ParallelPort provides a raw interface to the parallel port. Printers actually expect a certain way of getting data. That is the Centronix Parallel Port Protocol.

Basically you set a byte you want to send to the printer on the first byte of the parallel device. You then raise and lower a pin on the control byte (3rd I think ???) which tells the printer to retrieve the data you put on the first byte.

COPYRIGHT

Top

AUTHOR

Top

Scott Penrose scottp@dd.com.au, http://linux.dd.com.au/

SEE ALSO

Top

Device::ParallelPort


Device-ParallelPort documentation  | view source Contained in the Device-ParallelPort distribution.