#include <EncoderTool.h> // Load EncoderTool so the EC04 rotary signals can be decoded. #include <OneButton.h> // Load OneButton so the encoder push button can be debounced. namespace { // Keep lesson ...
#define ENCODER_L 13 // digital pin for reading the Speed sensor Left #define ENCODER_R 18 // digital pin for reading the Speed sensor Right #define SPEED_CALC_PERIOD 50 // in miliseconds ...