From 4263903592a9bfa03571783dda86d00791be36d2 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 20 Jul 2010 15:42:05 -0400 Subject: updated vga demos to use SerialUSB.end() --- examples/vga-leaf.cpp | 3 +++ examples/vga-scope.cpp | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'examples') 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); -- cgit v1.2.3