From ae64a19745b9f2b14e7b78ae3736f2853f27508e Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 5 Sep 2010 23:00:18 -0400 Subject: improved timer test program --- examples/test-timers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples') 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 -- cgit v1.2.3