Re: Implementing a multivibrator function with python

2013-11-12 Thread Joel Goldstick
On Tue, Nov 12, 2013 at 11:37 AM, Antoon Pardon wrote: > Op 12-11-13 15:44, JL schreef: >> I am actually running python on raspberry pi. The trigger event is a >> button-press. > > That doesn't help. What does that button-press cause in terms of the OS. Does > it cause a signal? Does it produce a

Re: Implementing a multivibrator function with python

2013-11-12 Thread Antoon Pardon
Op 12-11-13 15:44, JL schreef: > I am actually running python on raspberry pi. The trigger event is a > button-press. That doesn't help. What does that button-press cause in terms of the OS. Does it cause a signal? Does it produce a number of bytes that can be read from some file like object? Som

Re: Implementing a multivibrator function with python

2013-11-12 Thread unknown
On Tue, 12 Nov 2013 06:44:05 -0800, JL wrote: > I am actually running python on raspberry pi. The trigger event is a > button-press. > > On Monday, November 11, 2013 6:56:03 PM UTC+8, Dave Angel wrote: >> On Mon, 11 Nov 2013 01:41:58 -0800 (PST), JL >> >> wrote: >> >> > - If the event happens

Re: Implementing a multivibrator function with python

2013-11-12 Thread JL
I am actually running python on raspberry pi. The trigger event is a button-press. On Monday, November 11, 2013 6:56:03 PM UTC+8, Dave Angel wrote: > On Mon, 11 Nov 2013 01:41:58 -0800 (PST), JL > > wrote: > > > - If the event happens again before the 5secs expire, the high > > duration wil

Re: Implementing a multivibrator function with python

2013-11-11 Thread Antoon Pardon
Op 11-11-13 10:41, JL schreef: > I am trying to implement a multivibrator function with python. This is how it > works; > > - An trigger event happens > - Upon receiving the event, a variable goes high for 5secs, then go low. > - If the event happens again before the 5secs expire, the high durat

Re: Implementing a multivibrator function with python

2013-11-11 Thread Terry Reedy
On 11/11/2013 4:41 AM, JL wrote: I am trying to implement a multivibrator function with python. This is how it works; - An trigger event happens - Upon receiving the event, a variable goes high for 5secs, then go low. - If the event happens again before the 5secs expire, the high duration will

Re: Implementing a multivibrator function with python

2013-11-11 Thread Dave Angel
On Mon, 11 Nov 2013 01:41:58 -0800 (PST), JL wrote: - If the event happens again before the 5secs expire, the high duration will be extended by another 5 secs. This works like a retriggerable multivibrator for those who are into electronics. More precisely a retriggerable monostable multivibr

Implementing a multivibrator function with python

2013-11-11 Thread JL
I am trying to implement a multivibrator function with python. This is how it works; - An trigger event happens - Upon receiving the event, a variable goes high for 5secs, then go low. - If the event happens again before the 5secs expire, the high duration will be extended by another 5 secs. Th