Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59214
| From | unknown <unknown@unknown.com> |
|---|---|
| Subject | Re: Implementing a multivibrator function with python |
| Newsgroups | comp.lang.python |
| References | <c763cc2a-83d2-4ed7-9df6-83371e83d841@googlegroups.com> <c763cc2a-83d2-4ed7-9df6-83371e83d841@googlegroups.com> <mailman.2367.1384167379.18130.python-list@python.org> <895644e2-cf9c-45fe-a908-0391b65e8614@googlegroups.com> |
| Message-ID | <Cksgu.53487$F07.50558@fx06.am4> (permalink) |
| Organization | virginmedia.com |
| Date | 2013-11-12 16:04 +0000 |
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 <lightaiyee@gmail.com> >> >> 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 multivibrator. >> >> >> >> The question makes little sense unless you're running in an event >> >> driven environment, such as a gui. Name the environment and somebody >> >> can probably help. >> >> >> >> -- >> >> DaveA How critical is the output pulse time? is it a state that can be polled to regularly & changed if the timeout has been exceeded or does it need to switch in the background? if you need to trigger & switch in the background you will probably need to start playing with threads or multiprocessing. greater detail on what you are trying to achieve project wise may assist here
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Implementing a multivibrator function with python JL <lightaiyee@gmail.com> - 2013-11-11 01:41 -0800
Re: Implementing a multivibrator function with python Dave Angel <davea@davea.name> - 2013-11-11 04:56 -0600
Re: Implementing a multivibrator function with python JL <lightaiyee@gmail.com> - 2013-11-12 06:44 -0800
Re: Implementing a multivibrator function with python unknown <unknown@unknown.com> - 2013-11-12 16:04 +0000
Re: Implementing a multivibrator function with python Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-11-12 17:37 +0100
Re: Implementing a multivibrator function with python Joel Goldstick <joel.goldstick@gmail.com> - 2013-11-12 11:47 -0500
Re: Implementing a multivibrator function with python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-11-12 19:42 -0500
Re: Implementing a multivibrator function with python Terry Reedy <tjreedy@udel.edu> - 2013-11-11 05:58 -0500
Re: Implementing a multivibrator function with python Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-11-11 15:00 +0100
csiph-web