Waveshare 1.5 Inch RGB OLED Display

I have been receiving the attached error message for the attached code for quite a while. Does anyone have a fix? I also have include a running clock for the LCD but that does not pertain to the OLED.

COMP002.ino (2.12 KB)

Error Message.txt (1.59 KB)

OLED_Driver.h (3.04 KB)

OLED_GFX.h (1.3 KB)

It looks like you got a "No such file or directory" error for the library header files used by your sketch and tried to fix it by downloading those .h files from the Internet. That's not correct. Even though the "No such file or directory" error message only mentions the .h file, you need to install the entire library, not just the .h files.

If this is the case, please delete the .h files and then do a real installation of the libraries required by your sketch.

Often the code you're compiling will come with documentation (either a comment or separate document) that tells you where to get the library dependencies.

Note that libraries may have dependencies on other libraries.

In other cases the author of the code will not have been so kind and you'll need to go on a hunt for the missing library.

A good place to start is the Arduino IDE's Library Manager:

  • Sketch > Include Library > Manage Libraries...
  • In the "Filter your search..." box, type some keywords you have gleaned from the missing file name.
  • Scroll through the results for the right library. Click on it.
  • Click "Install".
  • Wait for installation to finish.
  • Click "Close".
  • Try compiling your code again.

If you have no luck in Library Manager then load up your favorite search engine and do a search for the missing filename. You will often get multiple results. If you have a lot of results you might add "arduino" as an additional search keyword. I will usually prefer results on github.com since that is where most Arduino libraries are hosted and downloading from there is fast and easy. In some cases there will be multiple libraries that contain the given filename and you'll need to do some evaluation to determine which seems the most appropriate, then try it out. After downloading the library you found you'll need to install it. This requires a different process than the Library Manager installation. You will find instructions here:

Please post a link to the actual screen that you have bought. e.g. Ebay sale page.

Then we can advise the most appropriate library, and help you with any problems that you might have when building the library examples.

Otherwise we have to Google "Waveshare 1.5 inch RGB OLED Display" and guess.

David.