Move files from main kindscript repo
This commit is contained in:
13
libs/cpp-test/hello.ts
Normal file
13
libs/cpp-test/hello.ts
Normal file
@ -0,0 +1,13 @@
|
||||
//% shim=foo::bar
|
||||
function test() {
|
||||
}
|
||||
|
||||
basic.plotLeds(`
|
||||
# # . # #
|
||||
. . # . .
|
||||
. . # . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`);
|
||||
basic.pause(300);
|
||||
test();
|
6
libs/cpp-test/support.cpp
Normal file
6
libs/cpp-test/support.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
namespace foo {
|
||||
GLUE void bar()
|
||||
{
|
||||
micro_bit::scrollNumber(108108, 50);
|
||||
}
|
||||
}
|
17
libs/cpp-test/yelm.json
Normal file
17
libs/cpp-test/yelm.json
Normal 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"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user