From 7a6a660da114111b24a2c31f48db31940a6f0ce6 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Thu, 19 Nov 2020 20:38:55 +0900 Subject: [PATCH] random stuffs --- assets/emittest.js | 8 +++++--- assets/tvdos/bin/false.js | 1 + assets/tvdos/bin/true.js | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 assets/tvdos/bin/false.js create mode 100644 assets/tvdos/bin/true.js diff --git a/assets/emittest.js b/assets/emittest.js index 89a6732..4091091 100644 --- a/assets/emittest.js +++ b/assets/emittest.js @@ -1,11 +1,13 @@ con.clear(); con.move(1,1); -for (let i = 0; i < 2048; i++) { - if (i < 1024) con.color_pair(239, 0); else con.color_pair(0, 239); +for (let i = 0; i < 1024; i++) { + if (i < 512) con.color_pair(239, 0); else con.color_pair(0, 239); let cx = (i%80)+1; let cy = ((i/80)|0)+1; //serial.printerr(cx+","+cy); con.move(cy,cx); con.addch(i%256); -} \ No newline at end of file +} + +println(); \ No newline at end of file diff --git a/assets/tvdos/bin/false.js b/assets/tvdos/bin/false.js new file mode 100644 index 0000000..eb224e0 --- /dev/null +++ b/assets/tvdos/bin/false.js @@ -0,0 +1 @@ +return 1; \ No newline at end of file diff --git a/assets/tvdos/bin/true.js b/assets/tvdos/bin/true.js new file mode 100644 index 0000000..f023caf --- /dev/null +++ b/assets/tvdos/bin/true.js @@ -0,0 +1 @@ +return 0; \ No newline at end of file