Closed santta closed 5 years ago
Then you have a very strange encoder. Did you try using NORMAL_ENCODER * 4
?
Yes, I tried this value, but nothing has changed. There may be a problem in the encoder itself, I will try to connect another one.
I installed another encoder (100% good) - four signals are sent again.
I have no idea, to be honest. I tested it on an Arduino Leonardo and a Teensy with a typical rotary encoder, and all seems fine. If you look at the code, you'll see that changing the number of pulses per step has to have some effect on how many messages are sent.
Does changing the value to 1 result in 16 messages?
Could you try just the Encoder library, without the MIDI_Controller library? Just print the encoder position to the serial monitor.
I have now determined that the problem with the arduino IDE is on my PC. For some reason, the program does not work correctly.
Description of the problem or question
Rotary encoder sends four signals instead of one. I tried to correct for different versions of the values rotaryencoder.hpp (normal_encoder) and speedmultiplay (in the sketch). But the encoder still sends 4 signals at one turn. How can I fix this problem?
Steps to reproduce the problem
RotaryEncoder.hpp
Hardware
Mega2560
Software versions:
MIDI Controller library: 3.1.0 Arduino IDE: 1.8.4 Windows10![screen](https://user-images.githubusercontent.com/45362973/52916117-c62cb480-32ec-11e9-8b4c-bc7f7ae4d366.jpg)
Settings in the IDE
Full code
Steps taken to try to diagnose or solve the problem
? Tried the MIDI debug mode, used a MIDI monitor, ... ?
The goal of your project and aditional information