aboutsummaryrefslogtreecommitdiffstats
path: root/examples/vga-scope.cpp
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 /examples/vga-scope.cpp
parentc634572c2d12d36d19f3c8f4fc9eda58bb5f3d3d (diff)
downloadlibrambutan-4263903592a9bfa03571783dda86d00791be36d2.tar.gz
librambutan-4263903592a9bfa03571783dda86d00791be36d2.zip
updated vga demos to use SerialUSB.end()
Diffstat (limited to 'examples/vga-scope.cpp')
-rw-r--r--examples/vga-scope.cpp6
1 files changed, 6 insertions, 0 deletions
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);