www.gusucode.com > 人脸识别源代码 采用Matlab编写源码程序 > Ultimate_Face_Recognition/prl2.m
% This code gives logical 1 0 0 1 to parrallel port. % Waits a moment and gives logical 0 0 1 0 (values at start.m) zi=1; for zi=1:500 i=1; k=1; parport=digitalio('parallel','LPT1'); line=addline(parport,0:3,'out'); putvalue(parport,[1 0 0 1]); end putvalue(parport,[0 0 1 0]); gval = getvalue(parport);