removing some serial functions
This commit is contained in:
parent
6c9b609fe0
commit
b80edb43fc
@ -126,15 +126,3 @@ This is useful if you have something connected at the other end. As explained ab
|
|||||||
let msg = serial.readString()
|
let msg = serial.readString()
|
||||||
```
|
```
|
||||||
|
|
||||||
* reads an image
|
|
||||||
|
|
||||||
```
|
|
||||||
img = serial.readImage()
|
|
||||||
```
|
|
||||||
|
|
||||||
* reads the state of the screen from serial
|
|
||||||
|
|
||||||
```
|
|
||||||
serial.readScreen()
|
|
||||||
```
|
|
||||||
|
|
||||||
|
@ -19,20 +19,4 @@ namespace serial {
|
|||||||
void writeString(StringData *text) {
|
void writeString(StringData *text) {
|
||||||
uBit.serial.sendString(ManagedString(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
|
//% shim=serial::writeString
|
||||||
function writeString(text: string): void;
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user