Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: EncoderConfig.h
- Revision:
- 6:c2af98aa7d2b
- Parent:
- 5:70534b19d8bf
- Child:
- 8:3086ea6466d1
--- a/EncoderConfig.h Fri Jan 16 15:33:21 2015 +0000 +++ b/EncoderConfig.h Wed Mar 18 16:41:59 2015 +0000 @@ -27,6 +27,8 @@ #ifndef ENCODER_CONFIG_H_ #define ENCODER_CONFIG_H_ +#include "project.h" + // Chose encoder pins // First tested with Nucleo STM32F302 #define ENCODER_PIN_A D6 @@ -37,10 +39,10 @@ // 250µs is a good value for cheap 24 ppr encoders (ALPS EC12E24...) with strong bouncing. // 1000µs is a good value for quality 24 ppr encoders (ALPS EC12E24...) with low bouncing. // 250µs is a good value for fast 24+ ppr encoders (Sparkfun, Some Bourns types, ...). -#define ENCODER_SAMPLE_PERIOD_US (250) +#define ENCODER_SAMPLE_PERIOD_US (125) // Pushbutton debouncing in milliseconds -#define ENCODER_PB_DEBOUNCE_MS (50uL) +#define ENCODER_PB_DEBOUNCE_MS (125uL) #endif // ENCODER_CONFIG_H_ \ No newline at end of file