✨ Encoder Noise Filter (#24538)
This commit is contained in:
committed by
Scott Lahteine
parent
6134d55360
commit
bbaccd342e
@ -2467,6 +2467,16 @@
|
||||
//
|
||||
//#define REVERSE_SELECT_DIRECTION
|
||||
|
||||
//
|
||||
// Encoder EMI Noise Filter
|
||||
//
|
||||
// This option increases encoder samples to filter out phantom encoder clicks caused by EMI noise.
|
||||
//
|
||||
//#define ENCODER_NOISE_FILTER
|
||||
#if ENABLED(ENCODER_NOISE_FILTER)
|
||||
#define ENCODER_SAMPLES 10
|
||||
#endif
|
||||
|
||||
//
|
||||
// Individual Axis Homing
|
||||
//
|
||||
|
@ -694,11 +694,7 @@ public:
|
||||
|
||||
static void update_buttons();
|
||||
|
||||
#if HAS_ENCODER_NOISE
|
||||
#ifndef ENCODER_SAMPLES
|
||||
#define ENCODER_SAMPLES 10
|
||||
#endif
|
||||
|
||||
#if ENABLED(ENCODER_NOISE_FILTER)
|
||||
/**
|
||||
* Some printers may have issues with EMI noise especially using a motherboard with 3.3V logic levels
|
||||
* it may cause the logical LOW to float into the undefined region and register as a logical HIGH
|
||||
|
Reference in New Issue
Block a user