A version of microbit_stub that uses microbit
as the module name.
The programs and related files here are essentially the same as the microbit_stub module. The only difference is that they illustrate naming the module microbit
as opposed to microbit_stub
. This means you can use the following import statement:
from microbit import *
and microbit micropython programs should run completely unchanged with this version of the microbit
stub module in your Python search path.
The differences between the files in this directory and its parent are:
microbit_stub.py
is namedmicrobit.py
to allow import frommicrobit
bitcounter-range.py
andhappysad.py
import frommicrobit
notmicrobit_stub
and should run completely unchanged with this module or with the physical microbitmicrobit_stub_settings.py
is namedmicrobit_settings.py
pressbutton.py
andpressbutton-withreset.py
import frommicrobit
notmicrobit_stub
. Note this programs are state change simiulators and not physical microbit programs.test_microbit_stub.py
is namedtest_microbit_stub.py
and imports frommicrobit
test_microbit_stub_display.txt
doctest file is namedtest_microbit_display.txt
and imports frommicrobit