MicroBitTools
MicroBitTools is a package for making BBC MicroBit development easier.
Installation
Run the following line in the terminal/command prompt to install:
pip install MicroBitTools
Examples
This one is used to flash to the MicroBit
from MicroBitTools import flash
flash("PythonFilePathHere", "MicroBitDirectoryHere")
This one is used to flash whole folders
from MicroBitTools import flashF
flashF("PythonFilePathHere", "MicroBitDirectoryHere")
Serial system (Still in early development)
First, let's create a SerialSystem
import MicroBitTools as mbt
mbs = mbt.SerialSystem()
Then, let's move the SerialSystem on to the MicroBit
mbs.readyMicroBit()
After that, we are going to create a loop that is printing the data from the MicroBit
while True:
print(mbs.read())
You'r code should look like this:
import MicroBitTools as mbt
mbs = mbt.SerialSystem()
mbs.readyMicroBit() # Load
while True: # Infinite loop
print(mbs.read()) # Print data from MicroBit
Metadata
Release files for MicroBitTools 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MicroBitTools-2.1.2.tar.gz | 16.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MicroBitTools-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.1 kB
Release files / MicroBitTools-2.1.2.tar.gz
| Download URL | MicroBitTools-2.1.2.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
473b88907bee4bd221464c35d5637611dace39435a911d2b23e2006d53e59df2
|
|
BLAKE2b-256 checksum How to use checksums |
b3d07d2aa36b742c862214f5d4f0e52654ef84635bab7d9de72edc0588ab041d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / MicroBitTools-2.1.2-py3-none-any.whl
| Download URL | MicroBitTools-2.1.2-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0aa884526521b2f5aec728de1762f39368ff3e377eb949e1db17940ea202f308
|
|
BLAKE2b-256 checksum How to use checksums |
03e7831c83ab1a2099478526c6a2166a2bba3b6213c2a3cbe41dd603ab287d6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|