Skip to content

Commit 021a3a1

Browse files
committed
Fix for radio issue
1 parent b4ff8ac commit 021a3a1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libs/device/pxt.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"smallFood.ts",
1111
"bigFood.jres",
1212
"bigFood.ts",
13+
"radio.d.ts",
1314
"sprites.duck.jres",
1415
"sprites.duck.ts",
1516
"sprites.castle.jres",

libs/device/radio.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare namespace radio {
2+
/**
3+
* Sends an event over radio to neigboring devices
4+
*/
5+
//% blockHidden=1 shim=radio::raiseEvent
6+
function raiseEvent(src: int32, value: int32): void;
7+
}

0 commit comments

Comments
 (0)