aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/test-timers.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/test-timers.cpp b/examples/test-timers.cpp
index 9adce70..ccba251 100644
--- a/examples/test-timers.cpp
+++ b/examples/test-timers.cpp
@@ -53,6 +53,12 @@ void setup()
}
void loop() {
+ SerialUSB.println("-----------------------------------------------------");
+ SerialUSB.println("Testing setCount/getCount");
+ SerialUSB.print("Timer1.getCount() = "); SerialUSB.println(Timer1.getCount());
+ SerialUSB.println("Timer1.setCount(1234)");
+ Timer1.setCount(1234);
+ SerialUSB.print("Timer1.getCount() = "); SerialUSB.println(Timer1.getCount());
// This tests whether the pause/resume functions work; when BUT is held
// down Timer4 is in the "pause" state and the timer doesn't increment, so
// the final counts should reflect the ratio of time that BUT was held down