This app is intended for the micro:bit platform. The micro:bit can be programmed in several ways:
- Block Editor: see Blocks of the MakeCode Editor
- JavaScript: see JavaScript of the MakeCode Editor
- Micro Pyton: see Python Editor v1.1
The micro:bit development environmen for the Blocks and JavaScript Editor is based on the open source project Microsoft Programming Experience Toolkit (PXT) from Microsoft. It is possible to run this environment locally on your computer.
To use the PXT Develpoment Environment you have to install the corrsponding Command Line Interface. Use the instructions in LET'S GET STARTED to setup the tool for micro:bit.
You have to develop own applications within the workspace of the PXT enviroment. In the Command Line Tool documentation refer to the section Creating a new project the create a new project.
WARING: Do not clone this project into the folder projects
of your PXT environment.
Within folder projects
follow these steps to setup the controller
project:
$ mkdir controller
$ cd controller
$ pxt init
$ rm .gitignore Makefile README.md main.ts pxt.json test.ts tsconfig.json
$ git init
$ git remote add origin [email protected]:makerstudio/paint-robot/controller.git
$ git pull origin master
$ git branch --set-upstream-to=origin/master master
Happy coding!
Start with Visual Studio Code
$ code .
then run app on your micro:bit
$ pxt
and within an other terminal type
$ pxt console
to see the log messages.