The following code compiles under TeensyDuino 1.35, but does not compile under 1.36
The specific error message is:
There's a block of #defines in ADC_module.h, in the 1.35 version, that doesn't seem to be in the 1.36 version:
Code:
#include <ADC.h>
// Snip //
//adc->setReference(ADC_REF_3V3, ADC_0);
adc->setAveraging(4, ADC_0); // set number of averages
adc->setResolution(16, ADC_0); // set bits of resolution
adc->setConversionSpeed(ADC_HIGH_SPEED, ADC_0); // change the conversion speed
adc->setSamplingSpeed(ADC_HIGH_SPEED, ADC_0); // change the sampling speed
//adc->setReference(ADC_REF_3V3, ADC_1);
adc->setAveraging(4, ADC_1); // set number of averages
adc->setResolution(16, ADC_1); // set bits of resolution
adc->setConversionSpeed(ADC_HIGH_SPEED, ADC_1); // change the conversion speed
adc->setSamplingSpeed(ADC_HIGH_SPEED, ADC_1); // change the sampling speed
The specific error message is:
Code:
Arduino: 1.8.1 (Windows 7), TD: 1.36, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz (overclock), Faster, US English"
StageEncoders05: In function 'void setup()':
StageEncoders05:79: error: 'ADC_HIGH_SPEED' was not declared in this scope
adc->setConversionSpeed(ADC_HIGH_SPEED, ADC_0); // change the conversion speed
^
'ADC_HIGH_SPEED' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
There's a block of #defines in ADC_module.h, in the 1.35 version, that doesn't seem to be in the 1.36 version:
Code:
#define ADC_VERY_LOW_SPEED 0
#define ADC_LOW_SPEED 1
#define ADC_MED_SPEED 2
#define ADC_HIGH_SPEED_16BITS 3
#define ADC_HIGH_SPEED 4
#define ADC_VERY_HIGH_SPEED 5