missing shim
This commit is contained in:
parent
fcfdbcc7e4
commit
9d1f2e024b
@ -452,6 +452,10 @@ namespace pxsim.radio {
|
|||||||
export function sendNumbers(value0: number, value1: number, value2: number, value3: number): void {
|
export function sendNumbers(value0: number, value1: number, value2: number, value3: number): void {
|
||||||
board().radio.datagram.send([value0, value1, value2, value3]);
|
board().radio.datagram.send([value0, value1, value2, value3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function sendValue(name:string, value: number) {
|
||||||
|
board().radio.datagram.send([value]);
|
||||||
|
}
|
||||||
|
|
||||||
export function receiveNumber(): number {
|
export function receiveNumber(): number {
|
||||||
return board().radio.datagram.recv().data[0];
|
return board().radio.datagram.recv().data[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user