Skip to content

Commit 439dd7e

Browse files
committed
scene.ts changes for MicroData debugging
1 parent 435c996 commit 439dd7e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

screen.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,19 @@ namespace user_interface_base {
202202
c: number
203203
) {
204204
// basic.showNumber(SCREEN_FN_ID_FILL_RECT);
205+
206+
const b = Buffer.fromArray([SCREEN_FN_ID_FILL_RECT, x, y, width, height, c])
207+
208+
basic.showString("S")
209+
basic.showNumber(x)
210+
basic.showString("p")
211+
basic.showNumber(y)
212+
for (let i = 0; i < b.length; i++) {
213+
basic.showString("" + i + ":" + b[i])
214+
215+
}
216+
basic.showString("D")
217+
205218
radio.sendBuffer(Buffer.fromArray([SCREEN_FN_ID_FILL_RECT, x, y, width, height, c]));
206219
}
207220

0 commit comments

Comments
 (0)