Keep in mind that C is case-sensitive. The header file for the rotary encoder is Rotary.h, so you would likely need something like:
#include <Rotary.h> ? ? ? ?// The case for 'R' must match the file name
The brackets cause the compiler to look in your default directory (/Arduino/libraries/Rotary/) for the library file. If you use:
#include "MorseCode.h"
the compiler looks in the current working directory where the sketch is located. If it doesn't find it there, then it looks in the default directory. This way, you can dink around with a header file in your code without changing the "real" library. Always use double quotes when you have a header file for a specific project.
From: Ben Kuhn <ben.kuhn@...> To:[email protected] Sent: Tuesday, July 18, 2017 11:33 PM Subject: Re: [BITX20] New to programming
Sounds like you are using an old version of the Arduino IDE.
You can install the library manually.? The one here should work. ?
Follow the instructions in the readme.? The exact path for the library will be ~/Arduino/libraries/Rotary/rotary.h
Hope this helps.
On Jul 18, 2017 10:20 PM, "Dexter N Muir" <dexy@...> wrote:
That would be nice if there was "Include Library" there. There isn't. What there *is* is "Add Library" which then browses for a file. :( Where next? Still hopeful ...