I'm in need of assistance with using the TeensyEyes files from Michael's github. I'm far from an expert with programming, but have a few years experience with creating projects on the Arduino and Teensy series of microcontrollers using the Arduino IDE. I'm familiar with file location for the .h .cpp, in regard to compiling, and feel confident I have everything in order, yet I cant get the files to compile without a number of "undefined reference" errors as if I have files in the incorrect location. This is what I've done, any help with stupid mistakes would be appreciated.
Download the zip file containing source files from git hub.
After unpacking I simply create a folder with the same name as the dummy ino file, then move all the files in the src directory to this new folder. When opening in the Arduino ide everything looks good, the .ino , .cpp and .h files are all shown. When I try and compile I get errors like this:
AppData\Local\arduino\sketches\5904FFEEB0724C46188F8A54E7FAA385\sketch\main.cpp.o

.data.eyeDefinitions+0x68): undefined reference to `polarAngle_240'
AppData\Local\arduino\sketches\5904FFEEB0724C46188F8A54E7FAA385\sketch\main.cpp.o

.data.eyeDefinitions+0x6c): undefined reference to `polarDist_240_125_85_0'
AppData\Local\arduino\sketches\5904FFEEB0724C46188F8A54E7FAA385\sketch\main.cpp.o

.data.eyeDefinitions+0x8c): undefined reference to `disp_240_125'
The #include references in the config.h file all use "" rather than <> which tells me the compiler is looking in the directory structure under the .ino file, not the main Arduino/libraries folder, and this appears to work just fine. The problem seems to be that if the config.h file points to a another .h file (which as mentioned seems OK) but if there is another #include "" inside of that file , then I have issues with the complier finding that second #include.
Eaxmple.... this bit of code is part of the config.h file, the compiler seems to find eyes/240x240/bigBlue.h
Code:
// Enable the eye(s) you want to #include -- these are large graphics tables for various eyes:
//#include "eyes/240x240/anime.h"
#include "eyes/240x240/bigBlue.h"
//#include "eyes/240x240/blueFlame1.h"
in the file eyes/240x240/bigBlue.h there are these statements , which is where the complier is stumbling
Code:
#pragma once
#include "../eyes.h"
#include "polarAngle_240.h"
#include "polarDist_240_125_85_0.h"
#include "disp_240_125.h"
Is there a preference in my IDE setup I'm missing? ( I do have the Tools/Board selected as Teensy 4.1 )
I've successfully set up and used the Adafruit version UncannyEyes, this version looks like entertaining.
MSC