Skip to content
Discussion options

You must be logged in to vote

What makes you think it doesn't?

from machine import Pin, lightsleep

l = [x for x in range(50,200+1,10)]
idx = 0

pin = Pin(25,Pin.OUT)
while True:
    pin.toggle()
    lightsleep(l[idx])
    pin.toggle()
    lightsleep(l[idx])
    idx = (idx+1) % len(l)

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by davefes
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@robert-hh
Comment options

@davefes
Comment options

@peterhinch
Comment options

@davefes
Comment options

@robert-hh
Comment options

Comment options

You must be logged in to vote
2 replies
@GitHubsSilverBullet
Comment options

@davefes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants