プラグイン入れてみたので確認

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!perl
 
# PerlParallelPortMacroPlayer
# by MDR mdr@sevenearth.com
 
use strict;
use Device::ParallelPort;
use Time::HiRes;
 
my $port = Device::ParallelPort->new;
# パラレルポートを出力方向にセット
$port->set_bit( 21, 0 );
# データビット2をN
$port->send_data( chr(0x02) );

Leave a Reply