From 021a3a10e88b0d41e786dc8cc38aa2a1c5ce83f1 Mon Sep 17 00:00:00 2001 From: Abhijith Chatra Date: Tue, 18 Mar 2025 17:00:50 -0700 Subject: [PATCH] Fix for radio issue --- libs/device/pxt.json | 1 + libs/device/radio.d.ts | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 libs/device/radio.d.ts 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