tttapa / MIDI_controller

This is a library for creating a MIDI controller using an Arduino or Teensy board.
GNU General Public License v3.0
402 stars 70 forks source link

Cannot compile RotaryEncoder #10

Closed Bwoe closed 6 years ago

Bwoe commented 6 years ago

When attempting to use "Single_potentiometer" within the IDE, the following error occurs: `In file included from /Users/username/Documents/Arduino/libraries/MIDI_controller-2.1.0/src/MIDI_controller.h:9:0, from /Users/username/Documents/Arduino/libraries/MIDI_controller-2.1.0/examples/Single_potentiometer/Single_potentiometer.ino:14: /Users/username/Documents/Arduino/libraries/MIDI_controller-2.1.0/src/RotaryEncoder.h:6:21: fatal error: Encoder.h: No such file or directory

include "Encoder.h"

                 ^

compilation terminated.` https://github.com/tttapa/MIDI_controller/blob/master/src/RotaryEncoder.h#L6

Changing "Encoder.h" to "RotaryEncoder.h" matches the filename in the subdirectory, but then throws the following: In file included from /Users/username/Documents/Arduino/libraries/MIDI_controller-2.1.0/src/MIDI_controller.h:9:0, from /Users/username/Documents/Arduino/libraries/MIDI_controller-2.1.0/examples/Single_potentiometer/Single_potentiometer.ino:14: /Users/username/Documents/Arduino/libraries/MIDI_controller-2.1.0/src/RotaryEncoder.h:45:3: error: 'Encoder' does not name a type Encoder enc; ^

Any suggestions?

tttapa commented 6 years ago

Please read the installation instructions in the ReadMe.