shims.d.ts should never be included in simulator

This commit is contained in:
Michal Moskal 2017-05-12 12:49:41 +01:00
parent 8ba9679e48
commit 00bf5e52d7
3 changed files with 5 additions and 6 deletions

View File

@ -186,7 +186,7 @@ namespace pxsim.bluetooth {
// TODO
}
export function advertiseUrl(url: string, power: number, connectable: boolean) { }
export function advertiseUidBuffer(nsAndInstance: Buffer, power: number, connectable: boolean) { }
export function advertiseUidBuffer(nsAndInstance: RefBuffer, power: number, connectable: boolean) { }
export function stopAdvertising() { }
export function setTransmitPower(power: number) {}
}

View File

@ -1,11 +1,11 @@
namespace pxsim {
export function sendBufferAsm(buffer: Buffer, pin: DigitalPin) {
export function sendBufferAsm(buffer: RefBuffer, pin: DigitalPin) {
let b = board();
if (b) {
let np = b.neopixelState;
if (np) {
let buf = <Uint8Array[]>(<any>buffer).data;
np.updateBuffer(buf, pin);
let buf = buffer.data;
np.updateBuffer(buf as any, pin); // TODO this is wrong
runtime.queueDisplayUpdate();
}
}

View File

@ -1,6 +1,5 @@
/// <reference path="../../node_modules/pxt-core/built/pxtsim.d.ts"/>
/// <reference path="../../libs/core/dal.d.ts"/>
/// <reference path="../../libs/core/shims.d.ts"/>
/// <reference path="../../libs/core/enums.d.ts"/>
namespace pxsim.visuals {
@ -240,4 +239,4 @@ namespace pxsim.visuals {
}
public updateTheme(): void { }
}
}
}