SparkFun Forums 

Where electronics enthusiasts find answers.

Questions &/or issues related to products in the LCDs and OLEDs category should be posted in this forum.
#201726
Hello,

My display: SparkFun 20x4 SerLCD - Black on RGB 3.3V (LCD-14074)

When I try to compile the ".\OpenLCD-master\firmware\OpenLCD\OpenLCD.ino" program from https://github.com/sparkfun/OpenLCD, I get the fatal error message: "'setupLCD' was not declared in this scope".

I am using the instructions given here:
"Firmware Update"
https://learn.sparkfun.com/tutorials/av ... -guide/all


Why is this not compiling?

Thanks!

Joe
#201777
Hi Joe,

I ran into the same problem. I did a google search, and there seems to be a bug introduced into the Arduino IDE around 1.8.5 that can cause multiple tabs to sometimes not compile correctly because the tabs aren't always compiled in the right order. The fix is said to be in the IDE 1.9 beta.

As a work around, I added the declarations to the header file. (That shouldn't be necessary if the files were compiled in the proper order, but it doesn't harm anything. In fact in the bad old days, that was best practice.)

Good luck,
Gaston