Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 2.35 KB

microbit-using-adding-packages.md

File metadata and controls

59 lines (42 loc) · 2.35 KB
title layout meta-description share author about cats simple-description date date-updated
Add Packages to Microsoft's Microbit PXT.IO editor
text-width-sidebar
How to add packages to PXT
true
jez
Add packages to microsoft's PXT editor the microbit.
other
Add Packages to PXT
2016-12-23 10:20:00 UTC
2016-12-23 10:20:00 UTC

The PXT.IO editor can use packages to add additional components or for extra functionality to the microbit. At present, there are libraries to use a sonar sensor, neopixels and a thermocoupler.

Here's the full list:

To drive neopixels, you need to add the neopixel package to your program:

Click 'Add Package'

Microbit microsoft pxt add package{:.ui .image .medium .centered}

Select the Package to Use

Select the Package{:.ui .image .medium .centered}

Use the Package in your Program

Using the neopixel package{:.ui .image .medium .centered}

Notes

  • It's possible to write your own packages. There's a write up here.. These are added to PXT.io if approved by microsoft (?)
  • PXT.io can be run from a local machine.
  • Unlike the TouchDevelop platform for the microbit, you cannot add your own packages. To do this, you must install PXT on a local machine.
  • A list of the current packages is in a README file on Github.