chore: update the file

This commit is contained in:
x-tools-author 2025-09-15 14:32:32 +08:00
parent b4a5f19807
commit 3062a2bf1e
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -24,7 +24,6 @@ compile_commands.json
*.aps
libs
bin
scripts
xapps/xprivate
.DS_Store
./xprivate

9
res/scripts/js/Demo.js Normal file
View File

@ -0,0 +1,9 @@
function onBytesRead(data) {
jsRunner.xPrint("read: " + data);
jsRunner.xWriteBytes(data);
}
while (!jsRunner.xIsInterruptionRequested()) {
jsRunner.xWriteBytes("hello");
jsRunner.xSleep(1000);
}