Skip to content

Cannot stop simulator with program containing reset in tight loop #86

Closed
@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon
from microbit import *
import machine
import random

while True:
    num = random.randint(1, 7)
    display.show(num)
    sleep(10) # works ok for me with 20ms
    machine.reset()

It stops OK with 20ms of delay or if you remove machine.reset().

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions