Starting on screen impl

This commit is contained in:
Michal Moskal
2017-07-05 13:06:58 +01:00
parent 7671a75dbc
commit 02d8cf7056
7 changed files with 105 additions and 2 deletions

14
libs/core/shims.d.ts vendored
View File

@ -38,6 +38,14 @@ declare namespace input {
//% block="button exit" weight=95 fixedInstance shim=pxt::getButton(5)
const buttonExit: Button;
}
declare namespace control {
/**
* Determine the version of system software currently running.
*/
//% shim=control::deviceFirmwareVersion
function deviceFirmwareVersion(): string;
}
declare namespace output {
/**
@ -95,5 +103,11 @@ declare interface Button {
//% button.fieldOptions.columns=3 shim=ButtonMethods::wasPressed
wasPressed(): boolean;
}
declare namespace screen {
/** Draw text. */
//% shim=screen::drawText
function drawText(x: int32, y: int32, text: string, mode: Draw): void;
}
// Auto-generated. Do not edit. Really.