Skip to main content

Library used for helping developing for the BBC microbit easier.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MicroBitTools-2.1.2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

MicroBitTools-2.1.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file MicroBitTools-2.1.2.tar.gz.

File metadata

  • Download URL: MicroBitTools-2.1.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for MicroBitTools-2.1.2.tar.gz
Algorithm Hash digest
SHA256 473b88907bee4bd221464c35d5637611dace39435a911d2b23e2006d53e59df2
MD5 b46724ceacde5a42de8173d9f9272564
BLAKE2b-256 b3d07d2aa36b742c862214f5d4f0e52654ef84635bab7d9de72edc0588ab041d

See more details on using hashes here.

File details

Details for the file MicroBitTools-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: MicroBitTools-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for MicroBitTools-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0aa884526521b2f5aec728de1762f39368ff3e377eb949e1db17940ea202f308
MD5 8ba669bb55550aefa23cf60d81149dfc
BLAKE2b-256 03e7831c83ab1a2099478526c6a2166a2bba3b6213c2a3cbe41dd603ab287d6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page