2016-04-07 13:34:52 -07:00
|
|
|
# micro:bit target for PXT
|
2016-03-10 14:21:48 -08:00
|
|
|
|
2016-04-07 13:33:55 -07:00
|
|
|
This target allow to program a [BBC micro:bit](https://www.microbit.co.uk/) using
|
|
|
|
[Microsoft Programming Experience Toolkit](https://github.com/Microsoft/pxt).
|
2016-03-10 14:21:48 -08:00
|
|
|
|
2016-05-10 21:43:12 -07:00
|
|
|
* [Try it live](https://m.pxt.io)
|
|
|
|
|
2016-04-07 13:33:55 -07:00
|
|
|
[![Build Status](https://travis-ci.org/Microsoft/pxt-microbit.svg?branch=master)](https://travis-ci.org/Microsoft/pxt-microbit)
|
2016-03-10 21:11:16 -08:00
|
|
|
|
2016-03-10 21:10:03 -08:00
|
|
|
# Getting started
|
2016-03-10 14:26:59 -08:00
|
|
|
|
2016-05-18 09:18:14 -07:00
|
|
|
The following commands are a 1-time setup after synching the repo on your machine.
|
|
|
|
|
|
|
|
* install the PXT command line
|
|
|
|
```
|
|
|
|
npm install -g pxt
|
|
|
|
```
|
|
|
|
* install the dependencies
|
|
|
|
```
|
|
|
|
npm install
|
|
|
|
```
|
|
|
|
|
|
|
|
After you're done, simple run this command to open a local web server:
|
|
|
|
```
|
|
|
|
pxt serve
|
|
|
|
```
|
|
|
|
|
|
|
|
More instructions at https://github.com/Microsoft/pxt#running-a-target-from-localhost
|
2016-04-07 20:48:00 -07:00
|
|
|
|
|
|
|
## Universal Windows App
|
|
|
|
|
2016-04-08 13:49:53 -07:00
|
|
|
The Windows 10 app is a [Universal Windows Hosted Web App](https://microsoftedge.github.io/WebAppsDocs/en-US/win10/CreateHWA.htm)
|
2016-05-10 19:01:36 +02:00
|
|
|
that wraps m.pxt.io and provides additional features.
|
2016-04-08 13:49:53 -07:00
|
|
|
|
|
|
|
### Building
|
|
|
|
|
|
|
|
* Install Visual Studio 2015 Update 2 or higher. Make sure the Windows 10 templates are installed.
|
2016-05-10 21:43:41 -07:00
|
|
|
* open the ``win10/app.sln`` solution and launch the ``m.pxt.io`` project.
|