Device::ParallelPort::Printer - Emulate a normal old style printer using Device::ParallelPort
use Device::ParallelPort::Printer; my $printer = Device::ParallelPort::Printer->new('parport:0'); $printer->sendfile('demo.ps');
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 (c) 2002,2004 Scott Penrose. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Scott Penrose scottp@dd.com.au, http://linux.dd.com.au/
Device::ParallelPort
To install Device::ParallelPort, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::ParallelPort
CPAN shell
perl -MCPAN -e shell install Device::ParallelPort
For more information on module installation, please visit the detailed CPAN module installation guide.