A tiny project codes

by

 

I've developed a tiny project mainly using IPT toolbox. I'm providing it for othhers reference

base
function base
dio=digitalio('parallel','lpt1');
Port0=addline(dio,0:7,0,'out');
putvalue(Port0,binvec2dec([0 0 0 0 1 0 0 0]));
pause(1);
putvalue(Port0,binvec2dec([0 0 0 0 0 1 0 0]));
pause(1);
putvalue(Port0,binvec2dec([0 0 0 0 0 0 1 0]));
pause(1);
putvalue(Port0,binvec2dec([0 0 0 0 0 0 0 1]));
pause(1);  
putvalue(Port0,binvec2dec([0 0 0 0 0 0 0 0]));
worknew();
end

Contact us