Add function declarations for the inline capture functions and add a
note to the README explaining how to compile from the CLI using the
‘arduino-mk’ package. Known to work on Debian 8, but untested
elsewhere.
v0.14. Add ‘DEBUG_MENU’ which can be uncommented to enable the basic
debug menu with the ability to run a capture / dump the data etc.
DEBUG and DEBUG_MENU are commented out by default to save RAM.
You can connect via the serial monitor and send ‘?’ to get a list of
commands available. This allows some diagnostics when the board isn’t
working with the OLS client.
Sending ‘4’ does a 4MHz capture and ‘2’ dumbs the data buffer for
example. Recommended to use this with the simulated signal via a
timer. See the bottom of the setup() function and change the ‘#if 0’
to ‘#if 1’ to enable it.
Also, fix a long standing bug that broke 2MHz captures and the
ATmega168. (improper #if defined check)
Cleanup older notes from the README. Move the part about disabling
auto-reset to towards the end under ‘older notes’ and add a comment
about how it shouldn’t be necessary. Almost move the part about the
device profiles as they are builtin to ols-0.9.7 or newer.
Fixes issue #14 where I copied the preprocessor logic from a different
Mega related check and didn't fix up the elif. So samples from 512 -
1023 were always zero on the Mega.
Update to v0.12
Also move a couple more things under #ifdef DEBUG in an attempt to
reduce the code size for ATmega168.
It current doesn't fit in the '168 but maybe after some more tweaks.
Use unrolled loops to sample at 2MHz & 4MHz rates. Based on some
testing by Bob Davis (http://bobdavis321.blogspot.com)
The maximum with a 16MHz clock is 5.3333MHz (3 cycles per sample) but
sampling at that rate isn't very accurate. Accuracy is pretty good at
2MHz & 4MHz.
Triggers are more reliable on PORTB. I am working on fixing triggers
on PORTD, but I'm setting this back to original behavior (with a
#define USE_PORTD available) so this isn't broken for triggering.
The Arduino Mega 2560 is now supported in addition to the regular
Arduino. The Mega supports 8 channels and 7k samples. The ols.profile-*
files are device profiles for the alternative SUMP client. 'AGLA' =
Arduino 'AGLAM' = Arduino Mega