aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-07-20 15:42:05 -0400
committerbnewbold <bnewbold@robocracy.org>2010-07-20 15:42:05 -0400
commit4263903592a9bfa03571783dda86d00791be36d2 (patch)
treec007b07123cd94882f80e1ffd9b2f060bc10dd32
parentc634572c2d12d36d19f3c8f4fc9eda58bb5f3d3d (diff)
downloadlibrambutan-4263903592a9bfa03571783dda86d00791be36d2.tar.gz
librambutan-4263903592a9bfa03571783dda86d00791be36d2.zip
updated vga demos to use SerialUSB.end()
-rw-r--r--examples/vga-leaf.cpp3
-rw-r--r--examples/vga-scope.cpp6
2 files changed, 9 insertions, 0 deletions
diff --git a/examples/vga-leaf.cpp b/examples/vga-leaf.cpp
index 6d07988..db20eb2 100644
--- a/examples/vga-leaf.cpp
+++ b/examples/vga-leaf.cpp
@@ -38,6 +38,9 @@ void setup()
Serial2.begin(9600);
Serial2.println("Video time...");
+ // This gets rid of the majority of the interrupt artifacts;
+ // a SysTick.end() is required as well
+ SerialUSB.end();
digitalWrite(VGA_R, 0);
digitalWrite(VGA_G, 0);
diff --git a/examples/vga-scope.cpp b/examples/vga-scope.cpp
index 3e7e75e..0265f9c 100644
--- a/examples/vga-scope.cpp
+++ b/examples/vga-scope.cpp
@@ -1,3 +1,6 @@
+// Low-level, non-wirish demonstration of VGA
+//
+// Connect a microphone or something less to ANALOG_PIN
#include "wirish.h"
@@ -39,6 +42,9 @@ void setup()
Serial2.begin(9600);
Serial2.println("Video time...");
+ // This gets rid of the majority of the interrupt artifacts;
+ // a SysTick.end() is required as well
+ SerialUSB.end();
digitalWrite(VGA_R, 0);
digitalWrite(VGA_G, 0);