Start on direct CPP migration

This commit is contained in:
Michal Moskal
2016-03-29 17:11:17 -07:00
parent a471c2cb1a
commit 0ccddf9fe8
6 changed files with 118 additions and 53 deletions

View File

@ -1,7 +1,3 @@
//% shim=foo::bar
function test() {
}
basic.plotLeds(`
# # . # #
. . # . .
@ -10,4 +6,4 @@ basic.plotLeds(`
. # # # .
`);
basic.pause(300);
test();
foo.bar();

View File

@ -1,6 +1,10 @@
#include "BitVM.h"
#include "MicroBitTouchDevelop.h"
namespace foo {
GLUE void bar()
//%
void bar()
{
micro_bit::scrollNumber(108108, 50);
touch_develop::micro_bit::scrollNumber(108108, 50);
}
}