Example sketch not compiling due to missing library

Hello,

I am trying to display text on the Arduino UNO R4 WiFi's LED matrix, so I followed this tutorial, however my sketch does not compile because it says that the library cannot be found. I thus opened the example project titled "TextWithArduinoGraphics" (File > Examples > LED_Matrix), but this example project also does not verify, for the same reason (Compilation error: ArduinoGraphics.h: No such file or directory).

I've made sure that I have the board installed, and I've tried reinstalling the IDE, but neither verifies, so I'm really not sure what's wrong. I'm using version 2.3.2 of the Arduino IDE and version 1.20 of Arduino UNO R4 Boards:

Welcome to the forum

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Please post your sketch, using code tags when you do

In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help

You will have to install the ArduinoGraphics library using the library manager. I did compile the TextWithArduinoGraphics example and after installing that library it compiled (with plenty of warnings).

I currently have board package 1.1.0 installed but that should not make a difference.


Personal opinion:
It's a bit ridiculous that provided examples don't compile. There should be at least a note in the example.

2 Likes

I've reported the issue for the built-in example on github: TextWithArduinoGraphics example does not compile due to missing library · Issue #371 · arduino/ArduinoCore-renesas · GitHub

Now I have to find where I can report the problem with the docs :frowning:

2 Likes

Requested to clarify that the library needs to be installed.

2 Likes

Thank you for your help and thank you for reporting the issue too so other people hopefully have fewer problems!

I have escalated the issue and we will fix it as soon as possible

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.