diff --git a/libs/device/pxt.json b/libs/device/pxt.json index 075902938f0..38c9ad97898 100644 --- a/libs/device/pxt.json +++ b/libs/device/pxt.json @@ -10,6 +10,7 @@ "smallFood.ts", "bigFood.jres", "bigFood.ts", + "radio.d.ts", "sprites.duck.jres", "sprites.duck.ts", "sprites.castle.jres", diff --git a/libs/device/radio.d.ts b/libs/device/radio.d.ts new file mode 100644 index 00000000000..abaaa5bc6a0 --- /dev/null +++ b/libs/device/radio.d.ts @@ -0,0 +1,7 @@ +declare namespace radio { + /** + * Sends an event over radio to neigboring devices + */ + //% blockHidden=1 shim=radio::raiseEvent + function raiseEvent(src: int32, value: int32): void; +} \ No newline at end of file