Fix sketch size for ATmega168

Automatically skip the inline2MHz sample rate on an ATmega168 based
Arduino.  4MHz will still work fine and the sketch will fit (10kB
instead of 16kB+)
This commit is contained in:
Andrew Gillham
2014-06-22 15:40:05 -07:00
parent 3128dc35f0
commit 23fb253929
2 changed files with 4 additions and 2 deletions

2
README
View File

@@ -21,7 +21,7 @@ Pins 22-29 (Port A) are used by default.
To use this with the original or alternative SUMP clients,
use these settings:
Sampling rate: 4MHz (or lower)
Sampling rate: 4MHz (or lower) (no 2MHz on ATmega168)
Channel Groups: 0 (zero) only
Recording Size:
ATmega168: 532 (or lower)

View File

@@ -47,7 +47,7 @@
* To use this with the original or alternative SUMP clients,
* use these settings:
*
* Sampling rate: 4MHz (or lower)
* Sampling rate: 4MHz (or lower) (no 2MHz on ATmega168)
* Channel Groups: 0 (zero) only
* Recording Size:
* ATmega168: 532 (or lower)
@@ -299,7 +299,9 @@ void loop()
}
else if (divider == 49) {
/* 2.0MHz */
#if defined(__AVR_ATmega168P__)
captureInline2mhz();
#endif
}
else if (useMicro) {
if (trigger && (delayTime != 1)) {