[visionegg] LPT: trigger_in only on change from 1 to 0

  • From: Christoph Lehmann <lehmann@xxxxxxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Fri, 02 May 2003 14:34:41 +0200

Dear Andrew
with the command: 

input_value = raw_lpt_module.inp(0x379) & 0x20 # pin nr 12
if input_value == 0:     
    do something

I can detect  changes at the port from 1 to 0

the command: 
input_value = raw_lpt_module.inp(0x379) & 0x20 # pin nr 12
if input_value == 1:     
    do something

doesn't work at all

a friend of mine told me, that I should send at the beginning a 0 to the
pin I want to read in from afterward. But I saw, that with your code
(DaqLPT) I can send only to pins 1-9, right? So what shall I do?

Thanks

christoph
-- 
Christoph Lehmann <lehmann@xxxxxxxxxxxx>
University Hospital of Clinical Psychiatry

======================================
The Vision Egg mailing list
Archives: //www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: