diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-09-05 23:00:18 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-09-05 23:00:18 -0400 |
commit | ae64a19745b9f2b14e7b78ae3736f2853f27508e (patch) | |
tree | 43e74152ab5d7bc1ae1343d396dc56404ee9fc45 /examples | |
parent | 340cdc7966fbda1a28ce011cbaaeb6878b0b6064 (diff) | |
download | librambutan-ae64a19745b9f2b14e7b78ae3736f2853f27508e.tar.gz librambutan-ae64a19745b9f2b14e7b78ae3736f2853f27508e.zip |
improved timer test program
Diffstat (limited to 'examples')
-rw-r--r-- | examples/test-timers.cpp | 6 |
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 |