How to delay until a next increment of time occurs ?

MRAB python at mrabarnett.plus.com
Thu Nov 14 16:19:20 EST 2019


On 2019-11-14 20:00, R.Wieser wrote:
> Dave,
> 
>> Can you expand on what you are trying to accomplish with this?
> 
> There is a small 433 MHz rf transmitter connected to the pin, and when I
> send the right pattern a wireless wall-wart will respond and switch a lamp
> on or off.     Its just ment as an example of a real-world application of
> Python, nothing serious.
> 
> Ofcourse, by doing so I'm learning about how to use python (and the Pi)
> myself too. :-)
> 
>> It seems a small C program or library you interface python too is a better 
>> solution.
> 
> :-)  I already wrote that program in C{something} (I'm not sure what my Pi
> offers by default) a while ago, but "ported" it to python.  For the above
> mentioned "example" reason.
> 
> ... Which is also why I didn't even try to just shell to that program, or
> try to interface with a C{something} library.
> 
> Though doing such interfacing is in the pipeline (I've already
> found-and-stored some documentation about it).
> 
Not everything needs to be done in Python. You should use an extension 
for that kind of thing and then tell it what to do from Python.


More information about the Python-list mailing list