[Microbit-Python] While loop without sleep

Matt Hickford matt.hickford at gmail.com
Thu Jan 19 16:06:34 EST 2017


Thanks Nicholas, that makes sense. Because the original example used
button.is_pressed() it has to debounce, whereas I used was_pressed() which
solves the problem for me (just tested it). I'll keep that in mind, thanks
for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20170119/ef6113f2/attachment.html>


More information about the Microbit mailing list