Skip to content

Instantly share code, notes, and snippets.

@boochow
Created December 2, 2018 06:30
Show Gist options
  • Save boochow/845bafa46eca7233d09c483789dfa802 to your computer and use it in GitHub Desktop.
Save boochow/845bafa46eca7233d09c483789dfa802 to your computer and use it in GitHub Desktop.
>>> import pyb
>>> tim = pyb.Timer(1)
>>> tim.init(freq=10)
>>> tim.callback(lambda t:pyb.LED(1).toggle())
>>> tim.deinit()
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment