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

Encoder_example compilation terminated #1

Closed DH1KLM closed 7 years ago

DH1KLM commented 7 years ago

encoder_example did not compile. Teensyduino is installed, also MIDIUSB. Tried it also on fresh installed PC with same results. Am i missing something?

Arduino: 1.6.5 (Windows 7), TD: 1.36, Platine: "TeeOnArdu (Leo on TeensyCore), MIDI, German"

In file included from C:\Users\DH1KLM\Documents\Arduino\libraries\MIDI_controller-master\src/MIDI_controller.h:9:0, from Encoder_example.ino:20: C:\Users\DH1KLM\Documents\Arduino\libraries\MIDI_controller-master\src/RotaryEncoder.h:6:21: fatal error: Encoder.h: No such file or directory

include "Encoder.h"

                 ^

compilation terminated. Fehler beim Kompilieren.

Same happens if i change to Teensy.

tttapa commented 7 years ago

Please follow the instructions in the Readme, and install the dependencies. You don't have to use TeeOnArdu, you can just delete it from your hardware folder. You'll probably have to upgrade the Arduino core as well, you need version 1.6.8 or higher.

DH1KLM commented 7 years ago

TeeOnArdu is needed for my Sparkfun Pro Micro to add MIDI. Also own a Teensy++ 2.0, all dependencies are installed as mentioned in your readme. I have already compiled other MIDI sketches successfully. 1.6.8 is not supported by Teensyduino. I will try a later version and report back.

tttapa commented 7 years ago

No, TeeOnArdu is not needed, use the Arduino Micro as the board setting, the MIDI Controller library uses the MIDIUSB library. You need the PJRC encoder library. Teensyduino 1.36 supports up to Arduino 1.8.2.

DH1KLM commented 7 years ago

Teensyduino 1.36 supports Arduino versions 1.0.6 and 1.6.5-r5 and 1.6.9 and 1.6.12 and 1.6.13 and 1.8.1 and 1.8.2. Installed 1.6.9, also installed all required libraries, have choosen Leonardo as Board and now it compiled and upload the sketch without errors. I could not find a Arduino Micro in the board list so i used Leonardo. TeeOnArdu was used for another Sketch. So i will test in the next days with my Sketch. Thank you for your support