The glue that binds together TouchDevelop programs compiled to C++ and the micro:bit runtime system
Перейти к файлу
Peli de Halleux 004053c77c updated constants for v.1.4.20 2016-10-26 09:24:22 -07:00
.vscode upgarded dal 1.4.15 2016-02-08 17:53:28 -08:00
examples Document setting handlers 2016-02-12 13:21:35 -08:00
generated updated constants for v.1.4.20 2016-10-26 09:24:22 -07:00
microbit-touchdevelop support for reading 4 numbers from radio buffer 2016-02-10 10:47:44 -08:00
scripts upgraded to 1.4.11 - ;ight sense, radio 2016-02-01 20:38:26 -08:00
source support for reading 4 numbers from radio buffer 2016-02-10 10:47:44 -08:00
.gitattributes Set line endings 2015-12-03 14:54:59 -08:00
.gitignore 'make run' now embeds the file in TD; 'make all' just builds 2015-10-14 10:07:14 -07:00
EXTENSIONS.md Document setting handlers 2016-02-12 13:21:35 -08:00
LICENSE Almost builds with yotta 2015-08-06 15:03:24 -07:00
Makefile Don't copy protos.h 2015-12-14 15:24:50 -08:00
README.md Add TD build instructions 2016-02-10 15:19:23 -08:00
config.json Re-commit files in the repository. 2015-12-21 10:44:54 -08:00
module.json updated to DAL 1.4.20 2016-10-26 09:09:49 -07:00
run.sh updating to dal 1.4.5. 2016-01-12 20:49:22 -08:00

README.md

Instructions.

Building with ARMCC

Install KEIL v4, do the license dance, figure things out, add to your path, etc.

yotta target bbc-microbit-classic-armcc
yotta login
yotta update
yotta build

Building with GCC

Patch module.json so that microbit-dal points to #experimental instead of #master.

yotta target bbc-microbit-classic-gcc
yotta login
yotta update
yotta build

Notes

Yotta doesn't clean up properly when: switching targets, switching branches in module.json. Always do yotta clean just to make sure. If you modified module.json, do yotta clean and yotta update. Also, blast away yotta_modules and yotta_target. Just to make sure.

The cloud compile service seems unhappy if the project doesn't compile (even though main.cpp is meant to be always replaced). So make sure that the projects compiles from a fresh checkout before pushing.

Using local version of DAL in Touch Develop

  • make sure Touch Develop is in TouchDevelop directory parallel to microbit-touchdevelop (for example, checkouts in /c/microbit-touchdevelop and /c/TouchDevelop
  • in TouchDevelop build as usual and run jake local; then head to http://localhost:4242/editor/local/mbit.html?lite=www.microbit.co.uk
  • in microbit-touchdevelop do the yotta dance with GCC as described above
  • in microbit-touchdevelop run either make run or ./run.sh
  • head to http://localhost:4242/editor/local/mbit.html?lite=www.microbit.co.uk&microbit=local