[Microbit-Python] working with micro:bit libraries

Nigel Kendrick nigel.kendrick at gmail.com
Sun Jun 5 11:10:59 EDT 2016


Hi Everyone,

 

Here's the start of some code I am writing. Unless I include the "import
microbit" line, the code generates an error on the sleep line. What am I not
appreciating or is this correct?

 

from microbit import *

import microbit

 

while True:

 

    # Reset the external circuit and wait 1mS for things to settle

    pin2.write_digital(1)

    pin2.write_digital(0)

    microbit.sleep(1)

    

[snip]

 

Thanks

 

-- Nigel

 

 



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20160605/308b8377/attachment.html>


More information about the Microbit mailing list