Renaming stuff in the simulator
This commit is contained in:
@ -2,7 +2,7 @@ namespace i2c_fram {
|
||||
const devaddr = 0x50;
|
||||
const memend = 0x7fff;
|
||||
|
||||
//% shim=ksrt::panic
|
||||
//% shim=pxtrt::panic
|
||||
function panic(code: number) { }
|
||||
|
||||
function die() { panic(142) }
|
||||
|
@ -3,7 +3,7 @@
|
||||
// Do not use anything besides basic.pause, control.inBackground, console.log
|
||||
//
|
||||
|
||||
//% shim=ksrt::panic
|
||||
//% shim=pxtrt::panic
|
||||
function panic(code2: number): void { }
|
||||
|
||||
function msg(s: string): void {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "kindscript.h"
|
||||
#include "pxt.h"
|
||||
#include "MESEvents.h"
|
||||
|
||||
using namespace kindscript;
|
||||
using namespace pxt;
|
||||
|
||||
enum class MesCameraEvent {
|
||||
//% block="take photo"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "kindscript.h"
|
||||
#include "pxt.h"
|
||||
|
||||
using namespace kindscript;
|
||||
using namespace pxt;
|
||||
|
||||
//% color=270 weight=34
|
||||
namespace radio {
|
||||
@ -15,7 +15,7 @@ namespace radio {
|
||||
int r = uBit.radio.enable();
|
||||
if (r != MICROBIT_OK) return r;
|
||||
if (!radioEnabled) {
|
||||
uBit.radio.setGroup(kindscript::programHash());
|
||||
uBit.radio.setGroup(pxt::programHash());
|
||||
radioEnabled = true;
|
||||
}
|
||||
return r;
|
||||
|
@ -154,7 +154,7 @@ namespace Array_ {
|
||||
}
|
||||
|
||||
// Import some stuff directly
|
||||
namespace kindscript {
|
||||
namespace pxt {
|
||||
//%
|
||||
void registerWithDal(int id, int event, Action a);
|
||||
//%
|
||||
@ -181,7 +181,7 @@ namespace kindscript {
|
||||
void *ptrOfLiteral(int offset);
|
||||
}
|
||||
|
||||
namespace ksrt {
|
||||
namespace pxtrt {
|
||||
//%
|
||||
uint32_t ldloc(RefLocal *r) {
|
||||
return r->v;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "kindscript.h"
|
||||
#include "pxt.h"
|
||||
#include "ManagedBuffer.h"
|
||||
|
||||
using namespace kindscript;
|
||||
using namespace pxt;
|
||||
MicroBitPin *getPin(int id);
|
||||
typedef ImageData* Image;
|
||||
typedef BufferData* Buffer;
|
||||
|
Reference in New Issue
Block a user