Commit Graph

3 Commits

Author SHA1 Message Date
Andrew Gillham
c8e564f6f0 Preliminary Leonardo (ATmega32U4) support.
Add initial support for the Arduino Leonardo with the ATmega32U4 chip
based on patches provided by audio mixer on forum.arduino.cc.  Tested
on a Leonardo R3.
This needs testing, but works well enough for the client to
communicate.  The pins especially need to be verified.
2014-06-24 22:46:49 -07:00
Andrew Gillham
9c83897b9b Correct preprocessor logic to avoid data gap on the Mega.
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
2013-09-06 09:54:41 -07:00
Andrew Gillham
d7c1bf52a8 Add 2MHz and 4MHz sample rate support.
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.
2013-08-03 12:33:23 -07:00