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.

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, I get the fatal error message: "'setupLCD' was not declared in this scope".

I am using the instructions given here:
"Firmware Update" ... -guide/all

Why is this not compiling?


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,