mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-16 16:06:06 +09:00
SerialHelper would work as intended MINUS the wait function
This commit is contained in:
14
assets/serialtest.js
Normal file
14
assets/serialtest.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var ba = com.sendMessageGetBytes(0, [0x44,0x45,0x56,0x4e,0x41,0x4d,0x17]);
|
||||
serial.println(ba);
|
||||
for (let k = 0; k < 4096; k++) {
|
||||
serial.print(String.fromCharCode(ba[k]));
|
||||
}
|
||||
serial.print("\n");
|
||||
|
||||
ba = com.pullMessage(0)
|
||||
for (let k = 0; k < 4096; k++) {
|
||||
serial.print(String.fromCharCode(ba[k]));
|
||||
}
|
||||
serial.print("\n");
|
||||
|
||||
serial.println("\nk bye")
|
||||
@@ -125,4 +125,7 @@ con.color_pair(201,255);
|
||||
print("cya!");
|
||||
|
||||
let konsht = 3412341241;
|
||||
print(konsht);
|
||||
println(konsht);
|
||||
|
||||
let pppp = graphics.getCursorYX();
|
||||
println(pppp.toString());
|
||||
Reference in New Issue
Block a user