Please fix the problem of Arduino 1.8.12 when compiling / uploading the sketch onto Nano Every which I encounter as follows (but I did not have any problem with web editor (Arduino create)) :
Arduino: 1.8.12 (Windows 10), Board: "Arduino Nano Every, ATMEGA328"
In file included from C:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp:1:0:
C:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.h:45:36: error: expected class-name before '{' token
class LiquidCrystal : public Print {
^
C:\Program Files (x86)\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.h:86:9: error: 'Print' has not been declared
using Print::write;
^~~~~
exit status 1
Error compiling for board Arduino Nano Every.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Maybe start with these links FIRST !
Then you may have an understanding of how to use the forum and how not to just jump into posts.
TOPIC SPLIT !
Could you take a few moments to Learn How To Use The Forum .
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.
pert
April 23, 2020, 9:13am
3
This bug has been fixed:
committed 02:36PM - 10 Apr 20 UTC
Fixes https://github.com/arduino/Arduino/issues/10025
A new release hasn't happened since that fix. You can fix it by doing this:
(In the Arduino IDE) File > Preferences
Click the link at the line following More preferences can be edited directly in the file .
Open the packages/arduino/hardware/megaavr/1.8.6/cores/arduino/api subfolder.
Open the file Print.h in a text editor.
Add the following line to the end of the file:
using namespace arduino;
Save the file.
You will now be able to use the LiquidCrystal library with your Nano Every.
Please let me know if you run into any problems or questions while following those instructions.
pert
April 25, 2020, 8:51am
5
You're welcome. I'm glad to hear it's working now. Enjoy!
Per