disabled FEATURE_AZ_PRESET_ENCODER and FEATURE_EL_PRESET_ENCODER by default

This commit is contained in:
Anthony Good 2015-12-04 21:26:18 -05:00
parent ffe20694ef
commit 0ab46711dd
2 changed files with 5 additions and 2 deletions

View File

@ -1663,6 +1663,9 @@ void check_az_preset_potentiometer() {
check_pot = 1;
}
}
//zzzzzzz
if (check_pot) {
pot_read = analogReadEnhanced(az_preset_pot);
new_pot_azimuth = map(pot_read, AZ_PRESET_POT_FULL_CW, AZ_PRESET_POT_FULL_CCW, AZ_PRESET_POT_FULL_CW_MAP, AZ_PRESET_POT_FULL_CCW_MAP);

View File

@ -75,8 +75,8 @@
//#define FEATURE_MOON_PUSHBUTTON_AZ_EL_CALIBRATION
/* preset rotary encoder features and options */
#define FEATURE_AZ_PRESET_ENCODER // Uncomment for Rotary Encoder Azimuth Preset support
#define FEATURE_EL_PRESET_ENCODER // Uncomment for Rotary Encoder Elevation Preset support (requires FEATURE_AZ_PRESET_ENCODER above)
//#define FEATURE_AZ_PRESET_ENCODER // Uncomment for Rotary Encoder Azimuth Preset support
//#define FEATURE_EL_PRESET_ENCODER // Uncomment for Rotary Encoder Elevation Preset support (requires FEATURE_AZ_PRESET_ENCODER above)
#define OPTION_ENCODER_HALF_STEP_MODE
#define OPTION_ENCODER_ENABLE_PULLUPS // define to enable weak pullups on rotary encoder pins
#define OPTION_INCREMENTAL_ENCODER_PULLUPS // define to enable weak pullups on 3 phase incremental rotary encoder pins