aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);