Move files from main kindscript repo

This commit is contained in:
Michal Moskal
2016-03-10 14:01:04 -08:00
parent a0f7ddd1be
commit 1a17bfac04
39 changed files with 2633 additions and 0 deletions

13
libs/cpp-test/hello.ts Normal file
View File

@ -0,0 +1,13 @@
//% shim=foo::bar
function test() {
}
basic.plotLeds(`
# # . # #
. . # . .
. . # . .
# . . . #
. # # # .
`);
basic.pause(300);
test();

View File

@ -0,0 +1,6 @@
namespace foo {
GLUE void bar()
{
micro_bit::scrollNumber(108108, 50);
}
}

17
libs/cpp-test/yelm.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "cpp-test",
"description": "Testing C++",
"files": [
"support.cpp",
"hello.ts"
],
"public": true,
"microbit": {
"config": {
"MICROBIT_BLE_ENABLED": "0"
}
},
"dependencies": {
"core": "file:../microbit"
}
}