removing some serial functions
This commit is contained in:
@ -19,20 +19,4 @@ namespace serial {
|
||||
void writeString(StringData *text) {
|
||||
uBit.serial.sendString(ManagedString(text));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends the current pixel values, byte-per-pixel, over serial.
|
||||
*/
|
||||
//%
|
||||
void writeScreen() {
|
||||
uBit.serial.sendDisplayState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads the screen from serial.
|
||||
*/
|
||||
//%
|
||||
void readScreen() {
|
||||
uBit.serial.readDisplayState();
|
||||
}
|
||||
}
|
||||
|
12
libs/microbit/shims.d.ts
vendored
12
libs/microbit/shims.d.ts
vendored
@ -489,18 +489,6 @@ declare namespace serial {
|
||||
*/
|
||||
//% shim=serial::writeString
|
||||
function writeString(text: string): void;
|
||||
|
||||
/**
|
||||
* Sends the current pixel values, byte-per-pixel, over serial.
|
||||
*/
|
||||
//% shim=serial::writeScreen
|
||||
function writeScreen(): void;
|
||||
|
||||
/**
|
||||
* Reads the screen from serial.
|
||||
*/
|
||||
//% shim=serial::readScreen
|
||||
function readScreen(): void;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user