Skip to content

Instantly share code, notes, and snippets.

@matee911
Created April 14, 2010 14:20
Show Gist options
  • Save matee911/365862 to your computer and use it in GitHub Desktop.
Save matee911/365862 to your computer and use it in GitHub Desktop.
def lagger(minimum=0.1, maximum=15):
steps = 3.0
t = minimum
p = (maximum-t)/steps
value = None
while True:
value = yield t
if t < maximum:
t += p
if value is not None and value == 'reset':
t = minimum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment