summaryrefslogtreecommitdiff
path: root/demopal/lib/TVout/examples/NTSCserialTerm/NTSCserialTerm.pde
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2013-05-15 22:34:48 +0300
committerYuval Adam <yuv.adm@gmail.com>2013-05-15 22:34:48 +0300
commit8111ed7c07a31dd99a323a0a29f9e99dd54c6d80 (patch)
tree9e8714c16ac55f56c90cca63380ee083d876cfb1 /demopal/lib/TVout/examples/NTSCserialTerm/NTSCserialTerm.pde
parentf9271756add719a30144ba60753cbae1e11ecd5f (diff)
Lots of project tests
Diffstat (limited to 'demopal/lib/TVout/examples/NTSCserialTerm/NTSCserialTerm.pde')
-rwxr-xr-xdemopal/lib/TVout/examples/NTSCserialTerm/NTSCserialTerm.pde20
1 files changed, 20 insertions, 0 deletions
diff --git a/demopal/lib/TVout/examples/NTSCserialTerm/NTSCserialTerm.pde b/demopal/lib/TVout/examples/NTSCserialTerm/NTSCserialTerm.pde
new file mode 100755
index 0000000..7b509a4
--- /dev/null
+++ b/demopal/lib/TVout/examples/NTSCserialTerm/NTSCserialTerm.pde
@@ -0,0 +1,20 @@
+#include <TVout.h>
+#include <pollserial.h>
+#include <fontALL.h>
+
+TVout TV;
+pollserial pserial;
+
+void setup() {
+ TV.begin(_NTSC,184,72);
+ TV.select_font(font6x8);
+ TV.println("Serial Terminal");
+ TV.println("-- Version 0.1 --");
+ TV.set_hbi_hook(pserial.begin(57600));
+}
+
+void loop() {
+ if (pserial.available()) {
+ TV.print((char)pserial.read());
+ }
+} \ No newline at end of file